You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vp...@apache.org on 2026/04/28 09:57:37 UTC
(ignite) branch master updated: IGNITE-28617 Fix flaky IgniteNativeIoLocalWalModeChangeDuringRebalancingSelfTest#testWalDisabledDuringRebalancing (#13082)
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 <vl...@gmail.com>
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
}
/**