-
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
[improve][admin] Fix the createMissingPartitions
doesn't response correctly
#22311
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #22311 +/- ##
============================================
+ Coverage 73.57% 73.70% +0.13%
- Complexity 32624 32798 +174
============================================
Files 1877 1887 +10
Lines 139502 139473 -29
Branches 15299 15293 -6
============================================
+ Hits 102638 102801 +163
+ Misses 28908 28711 -197
- Partials 7956 7961 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
|
createMissingPartitions
doesn't response correctlycreateMissingPartitions
doesn't response correctly
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
…orrectly (apache#22311) (cherry picked from commit 5cabcac) (cherry picked from commit d4c0543)
…orrectly (apache#22311) (cherry picked from commit 5cabcac) (cherry picked from commit d4c0543)
…orrectly (apache#22311) (cherry picked from commit 5cabcac) (cherry picked from commit d4c0543)
…orrectly (apache#22311) (cherry picked from commit 5cabcac) (cherry picked from commit d4c0543)
…orrectly (apache#22311) (cherry picked from commit 5cabcac) (cherry picked from commit d4c0543)
Motivation
If the topic metadata doesn't exist, it will create a new PartitionedTopicMetadata with 0 partition. If user use the cli to create missing partitions, it will response
OK
, which may confuse user.Modifications
When the metadata partition is 0, throw the NotFound exception to tell the user the topic not existed.
Documentation
doc
doc-required
doc-not-needed
doc-complete