-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
stalled outputs will prevent proper shutdown #3451
Comments
This is a duplicate of #2130 |
#2130 is really focused on the exception handling and this ticket describes the general condition that leads to preventing proper shutdown where "stalled outputs" can be for any number of reason, one of which is that the output plugin crashed. I think we should keep this ticket open because I believe that the proper fix is not limited to improving exception handling... |
In #3491 another explanation of this had raised, there are plugins having an infinite retry option, something that is very nice, but in case of having a target system down, it raises this issue as there are no more events being pop of the queues causing shutdown to be impossible. I add this explanation here as I will close #3491 as is a duplicate of this issue, but knowing infinite retries are also another source of this is important to notice here. |
@purbon ok, perfect. yes, this is exactly the general condition described here where the outputs are stalled. they can be stalled for different reasons like with timeouts or slowdowns communicating with the external destination or stalled on retries. So the general condition of stalled output plugins need to be dealt with to prevent proper shutdown but also, specific plugins doing infinite retries should be fixed to add a limit on the number of retries. |
@colinsurprenant I added this to the redis-output logstash-plugins/logstash-output-redis#9 but I see @jordansissel having concerns with data loss. |
Is there a work around for this problem so get out of this condition before the 1.6 release? |
This is a meta issue to track related shutdown issues.
Problem
Logstash refuses to stop if the output is stalled.
Details
If the output plugins are stalled and not popping events from the
@filter_to_output
and back pressure propagates, upon shutdown request theLogStash::SHUTDOWN
event will never be pushed because queues will be full and so plugins shutdown will not happen.this relates to shutdown refactor proposals in #3211 and #2477
Related issues:
The text was updated successfully, but these errors were encountered: