Skip to content
Merged
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 @@ -496,12 +496,11 @@ public void testRebalanceCancelOnSupplyError() throws Exception {

forceCheckpoint();

stopAllGrids();
stopGrid(1);
stopGrid(2);

// Rewrite data to trigger further rebalance.
IgniteEx supplierNode = startGrid(0);

supplierNode.cluster().state(ACTIVE);
IgniteEx supplierNode = grid(0);

IgniteCache<Object, Object> cache = supplierNode.cache(CACHE_NAME);

Expand Down Expand Up @@ -532,12 +531,15 @@ public void testRebalanceCancelOnSupplyError() throws Exception {
getTestTimeout()
);

// Hold the demand until the WAL read is armed to fail, so the error fires mid-rebalance.
TestRecordingCommunicationSpi spi = (TestRecordingCommunicationSpi)demanderNode.configuration().getCommunicationSpi();

spi.waitForBlocked();

// Inject I/O factory which can throw exception during WAL read on supplier node.
FailingIOFactory ioFactory = injectFailingIOFactory(supplierNode);

// Resume rebalance process.
TestRecordingCommunicationSpi spi = (TestRecordingCommunicationSpi)demanderNode.configuration().getCommunicationSpi();

spi.stopBlock();

// Wait till rebalance will be failed and cancelled.
Expand Down