-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][broker]Failed to create partitions after the partitions were deleted because topic GC #24651
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]Failed to create partitions after the partitions were deleted because topic GC #24651
Conversation
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
Outdated
Show resolved
Hide resolved
e4f7c20 to
97c024c
Compare
|
/pulsarbot run-failure-checks |
|
@poorbarcode Please fix code style issue. |
…leted because topic GC
635b6d4 to
e11f75e
Compare
|
I changed the test that you added: Please take a look |
...roker/src/test/java/org/apache/pulsar/broker/service/BrokerServiceAutoTopicCreationTest.java
Show resolved
Hide resolved
nodece
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.
Overall LGTM.
This is an important change because it allows partition recreation when allowAutoTopicCreation=false and partitioned metadata exists.
To clarify this behavior, I recommend updating the Javadoc for allowAutoTopicCreation to reflect this.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #24651 +/- ##
=========================================
Coverage 74.26% 74.26%
- Complexity 33200 33220 +20
=========================================
Files 1885 1885
Lines 146953 146969 +16
Branches 16928 16931 +3
=========================================
+ Hits 109129 109146 +17
- Misses 29104 29134 +30
+ Partials 8720 8689 -31
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
…leted because topic GC (apache#24651) (cherry picked from commit 7c57683) (cherry picked from commit eef82db)
…leted because topic GC (apache#24651) (cherry picked from commit 7c57683)
…leted because topic GC (apache#24651) (cherry picked from commit 7c57683) (cherry picked from commit eef82db)
…leted because topic GC (apache#24651) (cherry picked from commit 7c57683)
…leted because topic GC (apache#24651)
…leted because topic GC (apache#24651)
Motivation
Configurations:
allowAutoTopicCreation:falsebrokerDeleteInactiveTopicsEnabled:truebrokerDeleteInactivePartitionedTopicMetadataEnabled:falseSteps of the issue occurred
2partitions.partition-0is deleted because of no backlog.TopicNotFoundExpection.Modifications
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: x