Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read mode is not immediately stop consuming lines when shutting down is requested #323

Closed
edmocosta opened this issue Dec 13, 2023 · 0 comments · Fixed by #322
Closed

Read mode is not immediately stop consuming lines when shutting down is requested #323

edmocosta opened this issue Dec 13, 2023 · 0 comments · Fixed by #322
Assignees

Comments

@edmocosta
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant