IGNITE-12683 Increase a timeout and set a scale factor for keys count in BPlusTreeSelfTest. (#7451)
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/database/BPlusTreeSelfTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/database/BPlusTreeSelfTest.java
index 804121d..b11376c 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/database/BPlusTreeSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/database/BPlusTreeSelfTest.java
@@ -173,6 +173,11 @@
lockTrackerManager.start();
}
+ /** {@inheritDoc} */
+ @Override protected long getTestTimeout() {
+ return 10 * 60 * 1000L;
+ }
+
/**
* @param cacheId Cache ID.
* @param pageMem Page memory.
@@ -2293,7 +2298,7 @@
// is impossible if we already have a key in a back page, thus we will have lots of empty routing pages.
// This way the tree grows faster than shrinks and gets out of height limit of 26 (for this page size) quickly.
// Since the tree height can not be larger than the key count for this case, we can use 26 as a safe number.
- final int KEYS = MAX_PER_PAGE == 1 ? 26 : 10_000;
+ final int KEYS = MAX_PER_PAGE == 1 ? 26 : GridTestUtils.SF.applyLB(10_000, 2_500);
ThreadLocalRandom rnd = ThreadLocalRandom.current();