-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][broker] Consumer stuck when delete subscription __compaction failed #23980
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
Conversation
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java
Show resolved
Hide resolved
pulsar-broker/src/test/java/org/apache/pulsar/compaction/GetLastMessageIdCompactedTest.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/test/java/org/apache/pulsar/compaction/GetLastMessageIdCompactedTest.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java
Show resolved
Hide resolved
|
@poorbarcode I fixed a checkstyle issue and a problem in using MockZooKeeper's pulsar/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/ZKSessionWatcher.java Lines 108 to 115 in 6e8c349
This will trigger a ConnectionLost session event. That's why a delay should be kept under 2000 ms. |
|
I created a separate PR to fix the invalid test that fails now: #24166 |
lhotari
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. Good work @poorbarcode
…iled (#23980) Co-authored-by: Lari Hotari <lhotari@apache.org>
…iled (apache#23980) Co-authored-by: Lari Hotari <lhotari@apache.org>
…iled (apache#23980) Co-authored-by: Lari Hotari <lhotari@apache.org> (cherry picked from commit 98c9983)
…iled (apache#23980) Co-authored-by: Lari Hotari <lhotari@apache.org> (cherry picked from commit 98c9983) (cherry picked from commit e097ea1)
…iled (apache#23980) Co-authored-by: Lari Hotari <lhotari@apache.org> (cherry picked from commit 98c9983) (cherry picked from commit e097ea1)
…iled (apache#23980) Co-authored-by: Lari Hotari <lhotari@apache.org> (cherry picked from commit 98c9983) (cherry picked from commit e097ea1)
…iled (apache#23980) Co-authored-by: Lari Hotari <lhotari@apache.org> (cherry picked from commit 98c9983) (cherry picked from commit e097ea1)
…iled (apache#23980) Co-authored-by: Lari Hotari <lhotari@apache.org> (cherry picked from commit 98c9983) (cherry picked from commit e097ea1)
…iled (apache#23980) Co-authored-by: Lari Hotari <lhotari@apache.org> (cherry picked from commit 98c9983) (cherry picked from commit 13d21f0)
…iled (apache#23980) Co-authored-by: Lari Hotari <lhotari@apache.org> (cherry picked from commit 98c9983) (cherry picked from commit 13d21f0)
…iled (apache#23980) Co-authored-by: Lari Hotari <lhotari@apache.org>
Motivation
Background
__compactionIssue 1: consumer will stuck if deleting cursor(the step 2 above) failed
You can reproduce the issue by the test
testReadMsgsAfterDisableCompaction(true)issue 2
The compaction task can concurrently execute by deleting the cursor
__compactionModifications
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: x