You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When shutdown, the Disruptor first waits during a configurable period of time until all events are processed. If some events remain in the buffer after this period is elapsed, it throws a TimeoutException and the shutdown sequence is aborted. In this scenario the onShutdown method of the TcpEventHandler is not invoked and the connection remains open.
The text was updated successfully, but these errors were encountered:
…ut (#565)
* Add ability block with optional timeout when appending to async appenders
* Wait for the buffer to drain before calling Disruptor#shutdown
Calling Disruptor#shutdown(timeout) while the buffer is not empty causes the disruptor to wait in a busy-loop consumuing a lot of CPU. Instead, wait during the grace period before asking the disruptor to shutdown immediately.
Fixes#559Fixes#566Fixes#569
The TCP connection is closed in
TcpSendingEventHandler#onShutdown
(see https://github.com/logstash/logstash-logback-encoder/blob/logstash-logback-encoder-6.6/src/main/java/net/logstash/logback/appender/AbstractLogstashTcpSocketAppender.java#L644-L649). This method - part of the DisruptorLifecycleAware
interface - is invoked by the Disruptor when it is shutdown.When shutdown, the Disruptor first waits during a configurable period of time until all events are processed. If some events remain in the buffer after this period is elapsed, it throws a TimeoutException and the shutdown sequence is aborted. In this scenario the
onShutdown
method of the TcpEventHandler is not invoked and the connection remains open.The text was updated successfully, but these errors were encountered: