Skip to content

[ISSUE #10836] fix(common): validate group when parsing POP retry topics - #10846

Open
yuluo-yx wants to merge 1 commit into
apache:developfrom
yuluo-yx:0808-yuluo/fix-8
Open

[ISSUE #10836] fix(common): validate group when parsing POP retry topics#10846
yuluo-yx wants to merge 1 commit into
apache:developfrom
yuluo-yx:0808-yuluo/fix-8

Conversation

@yuluo-yx

@yuluo-yx yuluo-yx commented Aug 8, 2026

Copy link
Copy Markdown
Member

Which Issue(s) This PR Fixes

Brief Description

Strip POP retry prefixes only when they exactly match the supplied consumer group and retry-topic format.

How Did You Test This Change?

  • mise x java@temurin-17 -- mvn -pl common -Dtest=KeyBuilderTest test

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.31%. Comparing base (fd0c959) to head (d618d09).

Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #10846      +/-   ##
=============================================
- Coverage      48.37%   48.31%   -0.07%     
+ Complexity     13555    13531      -24     
=============================================
  Files           1380     1380              
  Lines         101165   101167       +2     
  Branches       13127    13128       +1     
=============================================
- Hits           48940    48874      -66     
- Misses         46250    46301      +51     
- Partials        5975     5992      +17     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@RockteMQ-AI RockteMQ-AI 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.

LGTM. Well-structured refactor — extracting parseNormalTopic and parseRetryTopic from the overloaded parseTopic improves readability, and the group ownership validation for POP retry topics (%RETRY%{group}%{uid}) correctly prevents cross-group topic hijacking. Comprehensive test coverage.


Automated review by github-manager-bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KeyBuilder strips retry topics for a different consumer group

3 participants