-
Notifications
You must be signed in to change notification settings - Fork 161
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
Fix event bus instance leak #2924
Conversation
d39b1b0
to
35ef688
Compare
Codecov Report
@@ Coverage Diff @@
## develop #2924 +/- ##
=============================================
+ Coverage 56.01% 56.17% +0.15%
- Complexity 2525 2535 +10
=============================================
Files 1040 1040
Lines 22578 22597 +19
Branches 2037 2039 +2
=============================================
+ Hits 12648 12694 +46
+ Misses 8998 8975 -23
+ Partials 932 928 -4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving the listener to its own class is ok but stopping the retries is probably the most important change here. Agree with these two.
I'm a bit concerned that there could be a race condition on the restart() method due to the fact that while the restart is in execution a new exception coming from the old instance or the new instance may trigger a new restart process. However, if restart is going to be synchronized, we have to make sure that the onException() method originating it must not block the qpid library underneath.
Signed-off-by: riccardomodanese <riccardo.modanese@eurotech.com>
Signed-off-by: riccardomodanese <riccardo.modanese@eurotech.com>
5a7051d
to
6cb1ee7
Compare
Signed-off-by: riccardomodanese riccardo.modanese@eurotech.com
Brief description of the PR.
Fix a possible leak on Event Bus.
When the Event Bus tries a re-start and, for some reason, the start throws an exception, the new instance will be not properly cleaned.
Added a clean-up
Related Issue
none
Description of the solution adopted
none
Screenshots
none
Any side note on the changes made
none