This is an automated email from the ASF dual-hosted git repository.
fortino pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
The following commit(s) were added to refs/heads/trunk by this push:
new f228cd59d2 OAK-12038: increase assertion time to avoid flakiness in
ElasticFacetTest (#2661)
f228cd59d2 is described below
commit f228cd59d23c8a6126ef548e3ab3d3c0d2223039
Author: Fabrizio Fortino <[email protected]>
AuthorDate: Tue Dec 16 15:43:34 2025 +0100
OAK-12038: increase assertion time to avoid flakiness in ElasticFacetTest
(#2661)
* OAK-12038: increase assertion time to avoid flakiness in ElasticFacetTest
* OAK-12038: increase assertion time to avoid flakiness in ElasticFacetTest
---
.../apache/jackrabbit/oak/plugins/index/elastic/ElasticFacetTest.java | 2 +-
.../java/org/apache/jackrabbit/oak/plugins/index/FacetCommonTest.java | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git
a/oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticFacetTest.java
b/oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticFacetTest.java
index a9257afd0b..12c6acfcd0 100644
---
a/oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticFacetTest.java
+++
b/oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticFacetTest.java
@@ -40,6 +40,6 @@ public class ElasticFacetTest extends FacetCommonTest {
protected void assertEventually(Runnable r) {
TestUtil.assertEventually(r,
- ((repositoryOptionsUtil.isAsync() ?
repositoryOptionsUtil.defaultAsyncIndexingTimeInSeconds : 0) +
ElasticBulkProcessorHandler.BULK_FLUSH_INTERVAL_MS_DEFAULT) * 5);
+ ((repositoryOptionsUtil.isAsync() ?
repositoryOptionsUtil.defaultAsyncIndexingTimeInSeconds : 2000) +
ElasticBulkProcessorHandler.BULK_FLUSH_INTERVAL_MS_DEFAULT) * 5);
}
}
diff --git
a/oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/FacetCommonTest.java
b/oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/FacetCommonTest.java
index cd6e8e43af..1f7115f0b7 100644
---
a/oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/FacetCommonTest.java
+++
b/oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/FacetCommonTest.java
@@ -57,7 +57,7 @@ import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;
public abstract class FacetCommonTest extends AbstractJcrTest {
- private static final Logger LOG =
LoggerFactory.getLogger(AbstractJcrTest.class);
+ private static final Logger LOG =
LoggerFactory.getLogger(FacetCommonTest.class);
private static final PerfLogger LOG_PERF = new PerfLogger(LOG);
protected TestRepository repositoryOptionsUtil;
protected Node indexNode;
@@ -73,7 +73,6 @@ public abstract class FacetCommonTest extends AbstractJcrTest
{
private final Map<String, Integer> actualAclPar1LabelCount = new
HashMap<>();
private static final Random INDEX_SUFFIX_RANDOMIZER = new Random(7);
-
@Before
public void createIndex() throws RepositoryException {
IndexDefinitionBuilder builder =
indexOptions.createIndex(indexOptions.createIndexDefinitionBuilder(), false);