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

[fix][broker]Fix lookupService.getTopicsUnderNamespace can not work with a quote pattern #23014

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

poorbarcode
Copy link
Contributor

Motivation

Background

  • Pattern.quote returns a literal pattern string for the specified
  • The result of Pattern.quote("123") will be \Q123\E

Issue
So far, TopicList.removeTopicDomainScheme will remove \Q which is the prefix of the input string. It leads lookupService.getTopicsUnderNamespace can not work with a quote pattern.

Modifications

Fix the bug

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: x

@poorbarcode poorbarcode added this to the 3.4.0 milestone Jul 9, 2024
@poorbarcode poorbarcode self-assigned this Jul 9, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jul 9, 2024
@poorbarcode
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@poorbarcode poorbarcode requested a review from gaoran10 July 9, 2024 03:23
@codecov-commenter
Copy link

codecov-commenter commented Jul 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.45%. Comparing base (bbc6224) to head (fb2009f).
Report is 445 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #23014      +/-   ##
============================================
- Coverage     73.57%   73.45%   -0.13%     
- Complexity    32624    33350     +726     
============================================
  Files          1877     1913      +36     
  Lines        139502   143390    +3888     
  Branches      15299    15639     +340     
============================================
+ Hits         102638   105322    +2684     
- Misses        28908    30031    +1123     
- Partials       7956     8037      +81     
Flag Coverage Δ
inttests 27.84% <0.00%> (+3.26%) ⬆️
systests 24.73% <45.45%> (+0.41%) ⬆️
unittests 72.51% <100.00%> (-0.34%) ⬇️

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

Files Coverage Δ
...ava/org/apache/pulsar/common/topics/TopicList.java 97.22% <100.00%> (+7.56%) ⬆️

... and 491 files with indirect coverage changes

@poorbarcode poorbarcode merged commit 7c0e827 into apache:master Jul 10, 2024
60 of 61 checks passed
poorbarcode added a commit that referenced this pull request Jul 11, 2024
poorbarcode added a commit that referenced this pull request Jul 11, 2024
poorbarcode added a commit that referenced this pull request Jul 11, 2024
poorbarcode added a commit that referenced this pull request Jul 11, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 12, 2024
…ith a quote pattern (apache#23014)

(cherry picked from commit 7c0e827)
(cherry picked from commit c0029d7)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 15, 2024
…ith a quote pattern (apache#23014)

(cherry picked from commit 7c0e827)
(cherry picked from commit c0029d7)
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.

4 participants