- Notifications
You must be signed in to change notification settings - Fork 52
Description
Hello,
I noticed that setting a moderately high value for the flush_interval
option (600 seconds) prevents logstash from shutting down.
If i keep the same configuration and set the flush_interval
to 30 seconds logstash shutdowns normally.
I am testing this code in an environment with multiple pipelines and didn't test if the problem occurs with a single pipeline.
For all general issues, please provide the following details for fast resolution:
- Version: Logstash 7.9.1 and output file plugin 4.3.0
- Operating System: Debian 10
- Steps to Reproduce:
- Start a logstash instance with a pipeline using the following file output configuration
file { path => "/data/%{[@metadata][beat]}.json" flush_interval => 600 codec => line { format => "%{[event][original]}"} }
-
Start logstash (for example with
systemctl start logstash.service
) and wait for it to start. -
Stop logstash (for example with
systemctl stop logstash.service
) and check the logs, they will probably contain lots of rows similar to the following and logstash will hang:
[2020-10-30T10:11:04,951][WARN ][org.logstash.execution.ShutdownWatcherExt] {"inflight_count"=>0, "stalling_threads_info"=>{}} [2020-10-30T10:11:09,958][WARN ][org.logstash.execution.ShutdownWatcherExt] {"inflight_count"=>0, "stalling_threads_info"=>{}}
Can someone confirm this behaviour is not specific to my environment?
Thank you