-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][broker] Fix unload operation stuck when use ExtensibleLoadManager #21332
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 unload operation stuck when use ExtensibleLoadManager #21332
Conversation
|
Great work @Demogorgon314! |
...ava/org/apache/pulsar/broker/loadbalance/extensions/channel/ServiceUnitStateChannelImpl.java
Outdated
Show resolved
Hide resolved
...ava/org/apache/pulsar/broker/loadbalance/extensions/channel/ServiceUnitStateChannelImpl.java
Outdated
Show resolved
Hide resolved
552dda6 to
965ae9c
Compare
Codecov Report
@@ Coverage Diff @@
## master #21332 +/- ##
=============================================
+ Coverage 36.73% 73.30% +36.56%
- Complexity 12220 32591 +20371
=============================================
Files 1711 1888 +177
Lines 130588 140261 +9673
Branches 14227 15414 +1187
=============================================
+ Hits 47971 102812 +54841
+ Misses 76264 29389 -46875
- Partials 6353 8060 +1707
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Did the exception now change to this one? https://github.com/apache/pulsar/actions/runs/6463552567/job/17547185928#step:10:1542 I think I've seen that before when investigating a flaky test. |
875d933 to
089befc
Compare
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
Show resolved
Hide resolved
|
How about this test failure in the CI builds for this PR: @Demogorgon314 Could you please check it? Is it flaky? |
|
@lhotari Yes, I pushed a commit to fix this issue. |
777254e to
0ef57bb
Compare
…ecs to 5 sec to avoid unload stuck
c65e34c to
7da7057
Compare
…er (apache#21332) (cherry picked from commit ecd40e4)
…er (apache#21332) (cherry picked from commit ecd40e4)
Fix #20157
Motivation
When enabling the topic level policies in
ExtensibleLoadManagerImplTest, the unload operation will get stuckThe root cause is when unloading the bundle, it will close the topic, and if
UpdateCursorInfofails, it will call theledger.mlOwnershipChecker.get().pulsar/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java
Lines 2692 to 2694 in 8438e43
The
mlOwnershipCheckerwill check the topic owner again.pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
Line 1751 in 8438e43
Since the current state is
Releasing, this feature will not be complete since thecloseServiceUnitis incomplete, and it will not send theFreestate to the channel.The stack log.
Modifications
inFlightStateWaitingTimeInMillisandownershipMonitorDelayTimeInSecsto 5 sec to avoid unloading stuck in unit test.Documentation
docdoc-requireddoc-not-neededdoc-complete