Distzzc opened a new issue, #11583:
URL: https://github.com/apache/rocketmq/issues/11583

   ### Before Creating the Enhancement Request
   
   - [x] I have confirmed that this should be classified as an enhancement 
rather than a bug/feature.
   
   
   ### Summary
   
   Add focused tests for the inclusive lookup boundary and wrap-around in 
ConsistentHashRouter, along with physical-node removal and the empty-ring case.
   
   ### Motivation
   
   AllocateMessageQueueConsistentHash uses this router when assigning message 
queues to consumers. A boundary or membership regression can affect which 
consumer gets a queue. Direct tests make these cases reproducible with fixed 
hash positions.
   
   ### Describe the Solution You'd Like
   
   - Place virtual nodes at fixed positions and check exact matches, the next 
position, and the wrap-around.
   - Remove a physical node and verify that all of its replicas disappear and 
an affected lookup reaches the remaining node.
   - Check that an empty ring returns no route.
   
   ### Describe Alternatives You've Considered
   
   The client allocator can exercise routing indirectly. A common-module unit 
test can assert the exact ring positions and check replica removal without 
setting up a consumer group.
   
   ### Additional Context
   
   _No response_


-- 
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