imbajin commented on code in PR #3356:
URL: https://github.com/apache/hugegraph/pull/3356#discussion_r4305216557


##########
hugegraph-pd/hg-pd-test/src/main/java/org/apache/hugegraph/pd/core/TaskScheduleServiceTest.java:
##########
@@ -75,6 +87,466 @@ public void testBalancePartitionLeader() throws PDException 
{
         getStoreNodeService().getStoreInfoMeta().removeAll();
     }
 
+    @Test
+    public void testAutoBalancePartitionLeaderWithinSkew() throws PDException {

Review Comment:
   ⚠️ Important: These cases cover skew 0 (`2/2/2`) and skew 6 (`6/0/0`) with 
`maxSkew=2`, but do not pin the threshold. An accidental change from `<=` to 
`<` would still pass while triggering transfers at exactly the configured 
limit. Please add cases for skew 2 (skip) and skew 3 (balance) with `maxSkew=2`.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to