This is an automated email from the ASF dual-hosted git repository.
tkalkirill pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git
The following commit(s) were added to refs/heads/main by this push:
new ac5d9e3827 IGNITE-17235 Fix flaky
ItBplusTreePageMemoryImplTest#testPutSizeLivelock (#1487)
ac5d9e3827 is described below
commit ac5d9e382757b856715349588585e86866e96de9
Author: Kirill Tkalenko <[email protected]>
AuthorDate: Thu Dec 29 16:13:03 2022 +0300
IGNITE-17235 Fix flaky ItBplusTreePageMemoryImplTest#testPutSizeLivelock
(#1487)
---
.../internal/pagememory/tree/AbstractBplusTreePageMemoryTest.java | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git
a/modules/page-memory/src/integrationTest/java/org/apache/ignite/internal/pagememory/tree/AbstractBplusTreePageMemoryTest.java
b/modules/page-memory/src/integrationTest/java/org/apache/ignite/internal/pagememory/tree/AbstractBplusTreePageMemoryTest.java
index 0983eda760..781d096a9e 100644
---
a/modules/page-memory/src/integrationTest/java/org/apache/ignite/internal/pagememory/tree/AbstractBplusTreePageMemoryTest.java
+++
b/modules/page-memory/src/integrationTest/java/org/apache/ignite/internal/pagememory/tree/AbstractBplusTreePageMemoryTest.java
@@ -97,7 +97,6 @@ import org.apache.ignite.lang.IgniteStringBuilder;
import org.jetbrains.annotations.Nullable;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInfo;
@@ -1519,17 +1518,15 @@ public abstract class AbstractBplusTreePageMemoryTest
extends BaseIgniteAbstract
* concurrently added to the tree until the new pages are not added
anymore. Test verifies that despite livelock condition a size from a
* valid range is returned.
*
- * <p>NB: This test has to be changed with the integration of IGNITE-3478.
- *
* @throws Exception if test failed
*/
@Test
- @Disabled("https://issues.apache.org/jira/browse/IGNITE-17235")
public void testPutSizeLivelock() throws Exception {
MAX_PER_PAGE = 5;
CNT = 800;
- final int slidingWindowSize = 16;
+ // Sliding window size should be greater than the amount of CPU cores
to avoid races between puts and removes in the tree.
+ int slidingWindowSize = CPUS * 2;
final boolean debugPrint = false;
final TestTree tree = createTestTree(false);