file-input fails to shutdown randomly. Logstash has received SIGTERM but read process does not stop.
There is a dead lock between inputworker thread and shutdown thread. Watcher quit is not able to turn on because IdentityMapCodec fails to finish stop().
file-input fails to shutdown randomly. Logstash has received SIGTERM but read process does not stop.
There is a dead lock between inputworker thread and shutdown thread. Watcher
quit
is not able to turn on because IdentityMapCodec fails to finish stop().quit
to truequit
is false. LogStash::Inputs::FileListener.accept()Steps to reproduce:
run a script to generate test files
Start logstash
pipeline.id: pipeJ pipeline.workers: 2 config.string: | input { file { path => "/tmp/jjj-*.txt" sincedb_path => "/tmp/sincedbJ.db" mode => "read" file_completed_action => "log_and_delete" file_completed_log_path => "/tmp/processeJ.log" } }
output { stdout { } }
Provide logs (if relevant):