Skip to content
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

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

Technoboy-
Copy link
Contributor

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

@Technoboy- Technoboy- self-assigned this Mar 20, 2024
@Technoboy- Technoboy- added this to the 3.3.0 milestone Mar 20, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Mar 20, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 66.66667% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 73.70%. Comparing base (bbc6224) to head (f8cd82a).
Report is 69 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             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     
Flag Coverage Δ
inttests 26.90% <0.00%> (+2.32%) ⬆️
systests 24.38% <0.00%> (+0.06%) ⬆️
unittests 72.96% <66.66%> (+0.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...pulsar/broker/admin/impl/PersistentTopicsBase.java 66.11% <66.66%> (+0.66%) ⬆️

... and 104 files with indirect coverage changes

@Technoboy- Technoboy- changed the title [impove][admin] Fix the createMissingPartitions doesn't response correctly [improve][admin] Fix the createMissingPartitions doesn't response correctly Mar 20, 2024
Copy link
Contributor

@aloyszhang aloyszhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Technoboy- Technoboy- merged commit 5cabcac into apache:master Mar 21, 2024
54 of 56 checks passed
lhotari pushed a commit that referenced this pull request Mar 27, 2024
lhotari pushed a commit that referenced this pull request Mar 27, 2024
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 15, 2024
…orrectly (apache#22311)

(cherry picked from commit 5cabcac)
(cherry picked from commit d4c0543)
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 17, 2024
…orrectly (apache#22311)

(cherry picked from commit 5cabcac)
(cherry picked from commit d4c0543)
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 17, 2024
…orrectly (apache#22311)

(cherry picked from commit 5cabcac)
(cherry picked from commit d4c0543)
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 19, 2024
…orrectly (apache#22311)

(cherry picked from commit 5cabcac)
(cherry picked from commit d4c0543)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 23, 2024
…orrectly (apache#22311)

(cherry picked from commit 5cabcac)
(cherry picked from commit d4c0543)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants