Increase a timeout and set a scale factor for keys count in BPlusTreeSelfTest.
@@ -173,6 +173,11 @@ public class BPlusTreeSelfTest extends GridCommonAbstractTest {
lockTrackerManager.start();
}
+ /** {@inheritDoc} */
+ @Override protected long getTestTimeout() {
+ return 10 * 60 * 1000L;
+ }
+
/**
* @param cacheId Cache ID.
* @param pageMem Page memory.
@@ -2293,7 +2298,7 @@ public class BPlusTreeSelfTest extends GridCommonAbstractTest {
// 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();
