-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][broker] Fix the order of resource close in the InMemoryDelayedDeliveryTracker #18000
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][broker] Fix the order of resource close in the InMemoryDelayedDeliveryTracker #18000
Conversation
mattisonchao
left a comment
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.
Can we add a test for it?
eolivelli
left a comment
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.
Lgtm
Codecov Report
@@ Coverage Diff @@
## master #18000 +/- ##
=========================================
Coverage ? 47.20%
Complexity ? 6376
=========================================
Files ? 367
Lines ? 41173
Branches ? 4216
=========================================
Hits ? 19437
Misses ? 19524
Partials ? 2212
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
/pulsarbot run-failure-checks |
8d09402 to
bbba3bf
Compare
I add |
|
/pulsarbot run-failure-checks |
…eliveryTracker (apache#18000) (cherry picked from commit 44ae348) (cherry picked from commit a9c67fa)
Motivation
In the InMemoryDelayedDeliveryTracker, the
priorityQueueshould be closed after thetimeouttask is canceled, otherwise, we may operate thepriorityQueuethat has been closed.Modifications
Close the
priorityQueueafter thetimeouttask is canceled and set timeout=null.Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: coderzc#11