Skip to content

[Java Client] fix PatternTopicsChangedListener blocked when topic removed - #16842

Merged
Technoboy- merged 1 commit into
apache:masterfrom
wangjialing218:branch-fix-regex-listener
Jul 29, 2022
Merged

[Java Client] fix PatternTopicsChangedListener blocked when topic removed#16842
Technoboy- merged 1 commit into
apache:masterfrom
wangjialing218:branch-fix-regex-listener

Conversation

@wangjialing218

Copy link
Copy Markdown
Contributor

Fixes #16839

Modifications

When PatternTopicsChangedListener#onTopicsRemoved triggered, removeConsumerAsync will throw ClassCastException.
When ackTimeoutMillis = 0 (default value), unAckedMessageTracker is created with UnAckedMessageTracker.UNACKED_MESSAGE_TRACKER_DISABLED

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Documentation

Check the box below or label this PR directly.

  • doc-not-needed

@Technoboy- Technoboy- self-assigned this Jul 28, 2022
@Technoboy- Technoboy- added this to the 2.11.0 milestone Jul 28, 2022
@Technoboy- Technoboy- added doc-not-needed Your PR changes do not impact docs type/bug The PR fixed a bug or issue reported a bug release/2.7.6 release/2.8.4 release/2.10.2 release/2.9.4 labels Jul 28, 2022

@codelipenghui codelipenghui left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@wangjialing218 Could you please help add an unit test to cover this change? The fix looks good to me

@mattisonchao mattisonchao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice catch!

@BewareMyPower

Copy link
Copy Markdown
Contributor

Please rebase to master to have #16812 included.

@wangjialing218
wangjialing218 force-pushed the branch-fix-regex-listener branch from 3fd8f3a to 5359962 Compare July 29, 2022 05:48
@wangjialing218

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@Technoboy-
Technoboy- merged commit 2d6b534 into apache:master Jul 29, 2022
Jason918 pushed a commit that referenced this pull request Aug 1, 2022
@Jason918 Jason918 added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Aug 1, 2022
BewareMyPower pushed a commit that referenced this pull request Aug 1, 2022
@BewareMyPower BewareMyPower added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Aug 1, 2022
Gleiphir2769 pushed a commit to Gleiphir2769/pulsar that referenced this pull request Aug 4, 2022
mattisonchao pushed a commit that referenced this pull request Aug 4, 2022
codelipenghui pushed a commit that referenced this pull request Aug 8, 2022
@mattisonchao mattisonchao added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Aug 10, 2022
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/branch-2.7 Archived: 2.7 is end of life cherry-picked/branch-2.8 Archived: 2.8 is end of life cherry-picked/branch-2.9 Archived: 2.9 is end of life cherry-picked/branch-2.10 doc-not-needed Your PR changes do not impact docs release/2.7.5 release/2.8.4 release/2.9.4 release/2.10.2 type/bug The PR fixed a bug or issue reported a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-discover of regular expressions subscribe stoped when any topic removed

6 participants