beautyarbutin opened a new pull request, #11207:
URL: https://github.com/apache/rocketmq/pull/11207

   ### Which Issue(s) This PR Fixes
   
   - Fixes #10836
   
   ### Brief Description
   
   `KeyBuilder.parseNormalTopic(topic, cid)` previously treated every 
retry-prefixed topic as belonging to the supplied consumer group. This could 
corrupt topics from another group or throw for a short regular retry topic.
   
   Validate the exact consumer-group prefix for both V1 (`_`) and V2 (`+`) POP 
retry topics before stripping it. Topics that do not match are returned 
unchanged. Regression tests cover both formats, mismatched consumer groups, and 
a short regular retry topic.
   
   This follows up on #10846, which was closed without being merged.
   
   ### How Did You Test This Change?
   
   - `mvn -B -ntp -pl common -DskipITs -Dtest=KeyBuilderTest 
-Dspotbugs.skip=true test`
   - `KeyBuilderTest`: 7 tests passed
   - Checkstyle: 0 violations


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to