biheto commented on PR #11621:
URL: https://github.com/apache/rocketmq/pull/11621#issuecomment-7192501850

   > `ceilingEntry` preserves exact-match routing, and `firstEntry` preserves 
wrap-around. I compiled the base (`e114b542`) and this revision (`45fde8c6`) 
with `javac --release 8` on JDK 17 and ran the same deterministic cases against 
both. Across 256 rounds covering node additions and removals, signed hash 
boundaries, virtual-node collisions, and empty rings, all 9,216 routing results 
and 1,024 replica counts matched. The five tests in `ConsistentHashRouterTest` 
also passed on the candidate revision. `ceilingEntry` 保留了完全匹配路由的方式,而 
`firstEntry` 则保留了循环覆盖的方式。我使用 JDK 17 版本,对基础版本 ( `e114b542` ) 和修订版本 ( `45fde8c6` 
) 进行了编译,并分别针对这两种版本运行了相同的确定性测试。在包含节点添加和删除、签名哈希边界、虚拟节点冲突以及空环等 256 轮测试过程中,所有 9,216 
次路由结果以及 1,024 次副本计数都完全一致。 `ConsistentHashRouterTes
 t` 中的五项测试也都在候选版本上通过了。
   
   @Distzzc 
    Thanks for the thorough validation against the base revision, especially 
the signed hash boundaries and virtual-node collisions. The matching results 
support that this change preserves the existing routing behavior while removing 
redundant tree lookups. No changes to node placement or replica management are 
intended.


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