alievmirza commented on code in PR #7472:
URL: https://github.com/apache/ignite-3/pull/7472#discussion_r2731083764


##########
modules/distribution-zones/src/integrationTest/java/org/apache/ignite/internal/rebalance/ItRebalanceMetricsTest.java:
##########
@@ -124,48 +88,44 @@ void testRebalanceMetrics() throws Exception {
 
         assertRebalanceMetrics(node0, ZONE_NAME, 0, 0);
 
-        CountDownLatch latch = new CountDownLatch(1);
-        AtomicBoolean skipEventProcessing = new AtomicBoolean(false);
-        String pendingAssignmentsKey = 
ZoneRebalanceUtil.PENDING_ASSIGNMENTS_QUEUE_PREFIX + zoneId + "_part_";
-        ByteArray pendingAssignmentsBytes = new 
ByteArray(pendingAssignmentsKey);
-
-        WatchListener listener = new 
PendingAssignmentsWatchListener(pendingAssignmentsKey, latch, 
skipEventProcessing);
-
         // Start a new node and register a watch listener for pending 
assignments.
         IgniteImpl node1 = unwrapIgniteImpl(startNode(1));
 
-        
node0.metaStorageManager().registerPrefixWatch(pendingAssignmentsBytes, 
listener);
-        
node1.metaStorageManager().registerPrefixWatch(pendingAssignmentsBytes, 
listener);
+        // Task to block a single threaded rebalance pool.
+        CountDownLatch rebalanceLatch = new CountDownLatch(1);
+        Runnable poisonPill = () -> {

Review Comment:
   let's use something like 
`org.apache.ignite.internal.disaster.ItDisasterRecoveryReconfigurationTest#blockRebalanceStableSwitch`



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