Repository navigation
Conversation
Don't close pub if there are pending events, otherwise events will be lost resulting in empty minion returns.
|
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
|
I wonder if it could help with the #61079 as well. I wonder if the |
Ch3LL
left a comment
There was a problem hiding this comment.
This will require changelog and possibly tests. But I want to get some other reviews here first before determining if this will require a test. @dwoz and @s0undt3ch can you review here and what are your opinions on test coverage on this change?
| self._clean_up_subscriptions(pub_data["jid"]) | ||
| finally: | ||
| if not was_listening: | ||
| if not was_listening and not self.event.pending_events: |
There was a problem hiding this comment.
Hmm, I'm not happy with leaving the event bus unclosed. We've had memory leaks because of that.
Waiting until there are no pending events won't work?
|
This can be re-based and re-opened if it should get into |
Don't close pub if there are pending events, otherwise events will be lost resulting in empty minion returns. Co-authored-by: Denis V. Meltsaykin <[email protected]> BACKPORT-UPSTREAM=saltstack#58503
Don't close pub if there are pending events, otherwise events will be lost
resulting in empty minion returns.
What does this PR do?
It fixes a bug in the batch client that randomly looses minion returns
What issues does this PR fix or reference?
Fixes: #58502