Skip to content

exceptions from nio are not handled in RelpHandler #9

@kortemik

Description

@kortemik
RelpLogger.flush.commit> exception:
java.io.IOException: Connection reset by peer
at java.base/sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at java.base/sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:113)
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:58)
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:50)
at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:466)
at com.teragrep.rlp_01.RelpConnection.sendRelpRequestAsync(RelpConnection.java:388)
at com.teragrep.rlp_01.RelpConnection.sendBatch(RelpConnection.java:244)
at com.teragrep.rlp_01.RelpConnection.commit(RelpConnection.java:214)
at com.teragrep.jla_04.RelpHandler.flush(RelpHandler.java:111)
at com.teragrep.jla_04.RelpHandler.publish(RelpHandler.java:101)
at java.logging/java.util.logging.Logger.log(Logger.java:979)
at java.logging/java.util.logging.Logger.doLog(Logger.java:1006)
at java.logging/java.util.logging.Logger.log(Logger.java:1029)
at java.logging/java.util.logging.Logger.finest(Logger.java:1854)

This should be handled as a retry at either of the two possible locations within jla_04:

at com.teragrep.jla_04.RelpHandler.flush(RelpHandler.java:111)
at com.teragrep.jla_04.RelpHandler.publish(RelpHandler.java:101)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions