ibessonov commented on code in PR #2473:
URL: https://github.com/apache/ignite-3/pull/2473#discussion_r1312682188


##########
modules/runner/src/integrationTest/java/org/apache/ignite/internal/raftsnapshot/ItTableRaftSnapshotsTest.java:
##########
@@ -436,21 +457,23 @@ private void reanimateNode2AndWaitForSnapshotInstalled() 
throws InterruptedExcep
      * on it for the sole table partition in the cluster.
      */
     private void reanimateNodeAndWaitForSnapshotInstalled(int nodeIndex) 
throws InterruptedException {
+        CountDownLatch snapshotInstalledLatch = 
snapshotInstalledLatch(nodeIndex);
+
+        reanimateNode(nodeIndex);
+
+        assertTrue(snapshotInstalledLatch.await(60, TimeUnit.SECONDS), "Did 
not install a snapshot in time");
+    }
+
+    private CountDownLatch snapshotInstalledLatch(int nodeIndex) {
         CountDownLatch snapshotInstalledLatch = new CountDownLatch(1);
 
-        Handler handler = replicatorLogInspector.addHandler(
+        replicatorLogInspector.addHandler(
                 evt -> evt.getMessage().getFormattedMessage().matches(
                         "Node .+ received InstallSnapshotResponse from .+_" + 
nodeIndex + " .+ success=true"),

Review Comment:
   Thank you! Completely forgot about colons



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