Logstash is unable to shut down (in a reasonable amount of time) when the input file plugin is in read mode and the files being read have thousands of lines.
The plugin only checks the exit condition (to stop reading) after processing all the current file lines (buffered), which might take too long if the pipeline has a slow sink. Changing it to immediately stop consuming lines would improve the shutdown performance and avoid Logstash to being killed by service managers such as systemd.
Logstash is unable to shut down (in a reasonable amount of time) when the input file plugin is in read mode and the files being read have thousands of lines. The plugin only checks the exit condition (to stop reading) after processing all the current file lines (buffered), which might take too long if the pipeline has a slow sink. Changing it to immediately stop consuming lines would improve the shutdown performance and avoid Logstash to being killed by service managers such as systemd.