This is an automated email from the ASF dual-hosted git repository.

vldpyatkov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 5ce787001be IGNITE-28617 Fix flaky 
IgniteNativeIoLocalWalModeChangeDuringRebalancingSelfTest#testWalDisabledDuringRebalancing
 (#13082)
5ce787001be is described below

commit 5ce787001be2384773e76713a7f6e435370ffc6f
Author: Vladislav Pyatkov <[email protected]>
AuthorDate: Tue Apr 28 12:57:31 2026 +0300

    IGNITE-28617 Fix flaky 
IgniteNativeIoLocalWalModeChangeDuringRebalancingSelfTest#testWalDisabledDuringRebalancing
 (#13082)
---
 .../LocalWalModeChangeDuringRebalancingSelfTest.java        | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git 
a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/LocalWalModeChangeDuringRebalancingSelfTest.java
 
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/LocalWalModeChangeDuringRebalancingSelfTest.java
index 1f3343e4533..d0b23132275 100644
--- 
a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/LocalWalModeChangeDuringRebalancingSelfTest.java
+++ 
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/LocalWalModeChangeDuringRebalancingSelfTest.java
@@ -328,11 +328,20 @@ public class LocalWalModeChangeDuringRebalancingSelfTest 
extends GridCommonAbstr
         }
 
         assertEquals(1, checkpointsBeforeNodeStarted); // checkpoint on start
-        assertEquals(0, checkpointsBeforeRebalance);
+
+        if (disableWalDuringRebalancing) {
+            // A rebalance manually starts only for the partitioned cache,
+            // but a rebalance for the replicated cache starts just after the 
exchange finishes
+            // and triggers a checkpoint on switching WAL.
+            // So the checkpoint might occur between newIgniteStartedTimestamp 
and rebalanceStartedTimestamp.
+            assertTrue(checkpointsBeforeRebalance <= 1);
+        }
+        else
+            assertEquals(0, checkpointsBeforeRebalance);
 
         // Expecting a checkpoint for each group.
         assertEquals(disableWalDuringRebalancing ? 
newIgnite.context().cache().cacheGroups().size() : 0,
-            checkpointsAfterRebalance); // checkpoint if WAL was re-activated
+            checkpointsBeforeRebalance + checkpointsAfterRebalance); // 
checkpoint if WAL was re-activated
     }
 
     /**

Reply via email to