-
Notifications
You must be signed in to change notification settings - Fork 102
GelfLogHandler fails to recover if channel is closed in GelfUDPSender #92
Comments
I started working on the issue a while ago with branch |
I'll give it a try but I suspect I'll have a hard time getting a reproducible testcase. |
I was able to reproduce the behaviour and exception on 1.9 by causing transaction timeouts in the JBoss application server.
logging to logstash resumed after that exception though so I expect I only "lost" a single log message. |
The issue with
That sound like your issue is solved. |
Yes, the issue was solved using the branch you provided. Do you plan to merge it for 1.11 ? |
I totally missed it's already merged with 90e9429. It will be part of the upcoming 1.11 release. I have one ticket left (reduce GC pressure) until I'll be able to release 1.11. Expect a release in the next 1-2 months. |
Great to hear, thanks for making this library, and making it better. |
Would not be possible without a great community. |
I'm using logstash-gelf-1.9.0 on JBoss EAP 6.4 deployed as a module and configured as a custom handler.
In my tests sometimes the DatagramChannel gets closed. I have no reproducible test case, but the times I've seen this occur coincided with a thread cleanup by the arjuna transaction reaper thread.
After the exception happens the GelfLogHandler does not recover and no further log messages are sent.
The following log message is printed once to stderr by the ErrorManager:
I see you added code to handle this in the GelfTcpSender with #83. Would it be an option to clear the gelfSender in GelfLogHandler on a failed publish? This might solve these issues in general instead of handling them on a case by case basis.
The text was updated successfully, but these errors were encountered: