Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exceptions from nio are not handled in RelpHandler #9

Open
kortemik opened this issue Jun 6, 2022 · 1 comment
Open

exceptions from nio are not handled in RelpHandler #9

kortemik opened this issue Jun 6, 2022 · 1 comment

Comments

@kortemik
Copy link
Member

kortemik commented Jun 6, 2022

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)
@kortemik
Copy link
Member Author

kortemik commented Jun 6, 2022

RelpLogger.flush.commit> exception:
java.io.IOException: Connection reset by peer

seems like a print out from https://github.com/teragrep/jla_04/blob/master/src/main/java/com/teragrep/jla_04/RelpHandler.java#L113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant