-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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] timeout when broker registry hangs and monitor broker registry (ExtensibleLoadManagerImpl only) #23382
Conversation
@heesung-sn please add the release labels that this applies to. |
I realized we need to add more validation upon this broker delete/create notifications as these notification could be "out-dated". |
59b86a9
to
0303d32
Compare
0303d32
to
ead0246
Compare
@heesung-sn I ran into a hanging test recently. Is this something that is related? ZkSessionExpireTest.cleanup hangs in
Thread dump: https://gist.github.com/lhotari/68578ba1354d4833af489b9ac3658c8c I created #23388 and #23389 for ZkSessionExpireTest flakiness issues that appeared in subsequent builds. |
Potentially, I think this could be related, regarding why the broker registry lock creation didn't go through. Unfortunately, we couldn't confirm this because we haven't put error log when creating the lock. I see a potential deadlock report in NativeReferenceQueue$Lock. I wonder if java 21 has any bugs there. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #23382 +/- ##
============================================
+ Coverage 73.57% 74.54% +0.97%
- Complexity 32624 34015 +1391
============================================
Files 1877 1936 +59
Lines 139502 145365 +5863
Branches 15299 15893 +594
============================================
+ Hits 102638 108366 +5728
+ Misses 28908 28681 -227
- Partials 7956 8318 +362
Flags with carried forward coverage won't be shown. Click here to find out more.
|
...broker/src/main/java/org/apache/pulsar/broker/loadbalance/extensions/BrokerRegistryImpl.java
Show resolved
Hide resolved
@heesung-sn Cherry-picking this to branch-3.0 doesn't get applied cleanly. Would you be able to handle cherry-picking the required changes to branch-3.0? |
…egistry (ExtensibleLoadManagerImpl only) (apache#23382) (cherry picked from commit eee9283)
…egistry (ExtensibleLoadManagerImpl only) (apache#23382) (cherry picked from commit eee9283)
Motivation
Modifications
Verifying this change
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: heesung-sn#82