This is an automated email from the ASF dual-hosted git repository.
mpetrov 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 9976eb8879d IGNITE-28032 Fixed flaky
IgniteCacheObjectKeyIndexingSelfTest (#12838)
9976eb8879d is described below
commit 9976eb8879d68cb0d3c50d76d414ae9bee500506
Author: Mikhail Petrov <[email protected]>
AuthorDate: Thu Mar 5 14:57:26 2026 +0300
IGNITE-28032 Fixed flaky IgniteCacheObjectKeyIndexingSelfTest (#12838)
---
.../IgniteCacheObjectKeyIndexingSelfTest.java | 22 +++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)
diff --git
a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheObjectKeyIndexingSelfTest.java
b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheObjectKeyIndexingSelfTest.java
index 44c48d61e01..d740950e254 100644
---
a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheObjectKeyIndexingSelfTest.java
+++
b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheObjectKeyIndexingSelfTest.java
@@ -51,7 +51,7 @@ public class IgniteCacheObjectKeyIndexingSelfTest extends
GridCommonAbstractTest
private static final int CACHE_SIZE = 20_000;
/** {@inheritDoc} */
- @Override protected void afterTestsStopped() throws Exception {
+ @Override protected void afterTest() throws Exception {
Ignition.stopAll(true);
cleanPersistenceDir();
@@ -116,9 +116,9 @@ public class IgniteCacheObjectKeyIndexingSelfTest extends
GridCommonAbstractTest
/** */
@Test
public void testObjectKeyHandlingDuringRebalance() throws Exception {
- startGrid(getTestIgniteInstanceName(0), createIgniteCfg(0));
+ startGrid(createIgniteCfg(0));
- Ignite ign1 = startGrid(getTestIgniteInstanceName(1),
createIgniteCfg(1));
+ Ignite ign1 = startGrid(createIgniteCfg(1));
ign1.cluster().state(ClusterState.ACTIVE);
@@ -132,7 +132,7 @@ public class IgniteCacheObjectKeyIndexingSelfTest extends
GridCommonAbstractTest
cleanPersistenceDir("node_1");
- startGrid(getTestIgniteInstanceName(1), createIgniteCfg(1));
+ startGrid(createIgniteCfg(1));
grid(0).cluster().setBaselineTopology(grid(0).cluster().topologyVersion());
@@ -199,17 +199,13 @@ public class IgniteCacheObjectKeyIndexingSelfTest extends
GridCommonAbstractTest
}
/** */
- private IgniteConfiguration createIgniteCfg(int id) {
- return new IgniteConfiguration()
- .setGridLogger(log)
+ private IgniteConfiguration createIgniteCfg(int id) throws Exception {
+ return getConfiguration(getTestIgniteInstanceName(id))
.setConsistentId("node_" + id)
.setRebalanceBatchSize(64)
- .setDataStorageConfiguration(
- new DataStorageConfiguration()
- .setDefaultDataRegionConfiguration(
- new
DataRegionConfiguration().setPersistenceEnabled(true)
- )
- );
+ .setDataStorageConfiguration(new DataStorageConfiguration()
+ .setDefaultDataRegionConfiguration(new
DataRegionConfiguration()
+ .setPersistenceEnabled(true)));
}
/** */