Skip to content

Commit e4c6569

Browse files
committed
test from master
1 parent 88cc13c commit e4c6569

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/IgniteCacheFileRebalancingAbstractTest.java

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,28 +129,36 @@ public void testHistoricalWithFileRebalancing() throws Exception {
129129
baseline.add(ignite0.localNode());
130130
baseline.add(ignite1.localNode());
131131

132-
DataLoader<TestValue> ldr = testValuesLoader(checkRemoves, DFLT_LOADER_THREADS).loadData(ignite0);
132+
//DataLoader<TestValue> ldr = testValuesLoader(checkRemoves, DFLT_LOADER_THREADS).loadData(ignite0);
133+
for (int i = 0; i < 20_000; i++)
134+
ignite0.cache(INDEXED_CACHE).put(i, new TestValue(i, i, i));
133135

134136
ignite1.close();
135137

136-
ldr.start();
137-
138-
U.sleep(1_000);
138+
for (int i = 20_000; i < 25_000; i++)
139+
ignite0.cache(INDEXED_CACHE).put(i, new TestValue(i, i, i));
139140

140-
ldr.stop();
141+
// U.sleep(1_000);
142+
// ldr.stop();
141143

142144
forceCheckpoint(ignite0);
143145

144146
IgniteEx ignite2 = startGrid(2);
145147

146148
baseline.add(ignite2.localNode());
147149

150+
// startGrid(1);
151+
148152
// we need to start node1 and include node2 into baseline at the same exchange.
149153
GridTestUtils.runAsync(() -> startGrid(1));
150154

151155
ignite0.cluster().setBaselineTopology(baseline);
152156

153157
awaitPartitionMapExchange();
158+
159+
// ignite0.cluster().setBaselineTopology(baseline);
160+
//
161+
// awaitPartitionMapExchange();
154162
}
155163

156164
/**

0 commit comments

Comments
 (0)