Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,13 @@ public void testWithLocalWalChange() throws Exception {

awaitPartitionMapExchange();

// Wait for rebalance to complete on all nodes (don't enforce success — it may switch to full rebalance).
for (Ignite ig : G.allGrids()) {
assertTrue(GridTestUtils.waitForCondition(
() -> ((IgniteEx)ig).cachex(CACHE_NAME).context().preloader().rebalanceFuture().isDone(),
getTestTimeout()));
}

Set<Long> topVers = ((WalRebalanceCheckingCommunicationSpi)ignite.configuration().getCommunicationSpi())
.walRebalanceVersions(grpId);

Expand All @@ -364,6 +371,13 @@ else if (k % 3 == 1) // Spread removes across all partitions.

awaitPartitionMapExchange();

// Wait for rebalance to complete on all nodes (don't enforce success — it may switch to full rebalance).
for (Ignite ig : G.allGrids()) {
assertTrue(GridTestUtils.waitForCondition(
() -> ((IgniteEx)ig).cachex(CACHE_NAME).context().preloader().rebalanceFuture().isDone(),
getTestTimeout()));
}

topVers = ((WalRebalanceCheckingCommunicationSpi)ignite.configuration().getCommunicationSpi())
.walRebalanceVersions(grpId);

Expand Down
Loading