Skip to content

[fix] [broker] response not-found error if topic does not exist when calling getPartitionedTopicMetadata - #22838

Merged
poorbarcode merged 20 commits into
apache:masterfrom
poorbarcode:pip_344/part_4
Jun 17, 2024
Merged

[fix] [broker] response not-found error if topic does not exist when calling getPartitionedTopicMetadata#22838
poorbarcode merged 20 commits into
apache:masterfrom
poorbarcode:pip_344/part_4

Conversation

@poorbarcode

@poorbarcode poorbarcode commented Jun 4, 2024

Copy link
Copy Markdown
Contributor

@poorbarcode poorbarcode self-assigned this Jun 4, 2024
@poorbarcode poorbarcode added this to the 3.4.0 milestone Jun 4, 2024
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Jun 4, 2024
@poorbarcode poorbarcode added ready-to-test and removed doc-not-needed Your PR changes do not impact docs labels Jun 4, 2024
@poorbarcode

Copy link
Copy Markdown
Contributor Author

/pulsarbot rerun-failure-checks

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Jun 4, 2024
lhotari
lhotari previously requested changes Jun 4, 2024
Comment thread pulsar-client/src/main/java/org/apache/pulsar/client/impl/PulsarClientImpl.java Outdated
@poorbarcode
poorbarcode requested a review from lhotari June 6, 2024 08:58
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 80.00000% with 35 lines in your changes missing coverage. Please review.

Project coverage is 73.26%. Comparing base (bbc6224) to head (3e061cc).
Report is 369 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #22838      +/-   ##
============================================
- Coverage     73.57%   73.26%   -0.31%     
- Complexity    32624    33033     +409     
============================================
  Files          1877     1892      +15     
  Lines        139502   142015    +2513     
  Branches      15299    15576     +277     
============================================
+ Hits         102638   104047    +1409     
- Misses        28908    29949    +1041     
- Partials       7956     8019      +63     
Flag Coverage Δ
inttests 27.35% <54.28%> (+2.76%) ⬆️
systests 24.69% <24.57%> (+0.37%) ⬆️
unittests 72.30% <80.00%> (-0.55%) ⬇️

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

Files Coverage Δ
...pulsar/broker/admin/impl/PersistentTopicsBase.java 69.73% <100.00%> (+4.27%) ⬆️
...he/pulsar/broker/admin/v2/NonPersistentTopics.java 63.87% <100.00%> (+2.40%) ⬆️
...g/apache/pulsar/broker/lookup/TopicLookupBase.java 75.84% <100.00%> (+8.42%) ⬆️
...apache/pulsar/client/impl/ConsumerBuilderImpl.java 86.69% <85.71%> (-0.25%) ⬇️
...va/org/apache/pulsar/broker/service/ServerCnx.java 72.14% <66.66%> (-0.01%) ⬇️
...pache/pulsar/broker/namespace/TopicExistsInfo.java 79.48% <79.48%> (ø)
...rg/apache/pulsar/broker/service/BrokerService.java 82.14% <77.14%> (+1.36%) ⬆️
...ache/pulsar/broker/namespace/NamespaceService.java 73.15% <72.50%> (+0.91%) ⬆️

... and 384 files with indirect coverage changes

@poorbarcode
poorbarcode requested a review from Technoboy- June 11, 2024 08:11
@poorbarcode

Copy link
Copy Markdown
Contributor Author

@lhotari Could you take a look at your convenience

@poorbarcode
poorbarcode requested review from lhotari and removed request for lhotari June 11, 2024 08:42
@poorbarcode
poorbarcode dismissed lhotari’s stale review June 17, 2024 15:38

The review has been no response for a long time

@poorbarcode
poorbarcode merged commit 9aed736 into apache:master Jun 17, 2024
poorbarcode added a commit that referenced this pull request Jun 19, 2024
…calling getPartitionedTopicMetadata (#22838)

(cherry picked from commit 9aed736)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 24, 2024
…calling getPartitionedTopicMetadata (apache#22838)

(cherry picked from commit 9aed736)
(cherry picked from commit 1d2959b)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 24, 2024
…calling getPartitionedTopicMetadata (apache#22838)

(cherry picked from commit 9aed736)
(cherry picked from commit 1d2959b)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 24, 2024
…calling getPartitionedTopicMetadata (apache#22838)

(cherry picked from commit 9aed736)
(cherry picked from commit 1d2959b)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 25, 2024
…calling getPartitionedTopicMetadata (apache#22838)

(cherry picked from commit 9aed736)
(cherry picked from commit 1d2959b)
@shibd shibd added the release/important-notice The changes which are important should be mentioned in the release note label Jun 28, 2024
poorbarcode added a commit that referenced this pull request Jun 28, 2024
…calling getPartitionedTopicMetadata (#22838)

(cherry picked from commit 9aed736)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 1, 2024
…calling getPartitionedTopicMetadata (apache#22838)

(cherry picked from commit 9aed736)
(cherry picked from commit 1d2959b)
hanmz pushed a commit to hanmz/pulsar that referenced this pull request Feb 12, 2025
nodece pushed a commit to nodece/pulsar that referenced this pull request Mar 18, 2025
…calling getPartitionedTopicMetadata (apache#22838)

(cherry picked from commit 9aed736)
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
nodece pushed a commit to nodece/pulsar that referenced this pull request Mar 18, 2025
…calling getPartitionedTopicMetadata (apache#22838)

(cherry picked from commit 9aed736)
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Mar 18, 2025
…calling getPartitionedTopicMetadata (apache#22838)

(cherry picked from commit 9aed736)
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
nodece pushed a commit to nodece/pulsar that referenced this pull request Mar 19, 2025
…calling getPartitionedTopicMetadata (apache#22838)

(cherry picked from commit 9aed736)
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
nodece added a commit to ascentstream/pulsar that referenced this pull request Mar 19, 2025
* [fix] [broker] response not-found error if topic does not exist when calling getPartitionedTopicMetadata (apache#22838)

(cherry picked from commit 9aed736)
Signed-off-by: Zixuan Liu <nodeces@gmail.com>

* [fix] [broker] Fix compatibility issues for PIP-344 (apache#23136)

Co-authored-by: Lari Hotari <lhotari@apache.org>

(cherry picked from commit 702c0b3)
Signed-off-by: Zixuan Liu <nodeces@gmail.com>

* Fix test

Signed-off-by: Zixuan Liu <nodeces@gmail.com>

* Fix test

Signed-off-by: Zixuan Liu <nodeces@gmail.com>

* Fix test

Signed-off-by: Zixuan Liu <nodeces@gmail.com>

* Disable testTopicPoliciesWithMultiBroker

Signed-off-by: Zixuan Liu <nodeces@gmail.com>

---------

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
Co-authored-by: fengyubiao <yubiao.feng@streamnative.io>
Co-authored-by: Lari Hotari <lhotari@apache.org>
Demogorgon314 pushed a commit to Demogorgon314/kop that referenced this pull request Apr 15, 2026
…osition implementation for compaction (streamnative#606)

### Motivation

apache/pulsar#22891 introduces some changes for
the PositionImpl. Now we need to use the Position interface instead of
the PositionImpl.

### Modifications

- Refactor to use Position instead of PositionImpl
- apache/pulsar#22572 uses
`getLastDispatchablePosition` instead of `getMaxPosition` to return the
last message id, this patch implements the new method for
`KopPersistentTopic`.
- apache/pulsar#22838 changed the result for
`checkTopicExists`. This PR also adapts to changes.
- apache/pulsar#22882 removed the method
`org.apache.pulsar.broker.service.Producer.updateRates(int
numOfMessages, long msgSizeInBytes)`. We need to use
`producer.getStats().recordMsgIn` instead.

---------

Co-authored-by: Yunze Xu <xyzinfernity@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/branch-3.0 cherry-picked/branch-3.3 doc-not-needed Your PR changes do not impact docs ready-to-test release/important-notice The changes which are important should be mentioned in the release note release/3.0.6 release/3.3.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants