You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2025/01/29 11:11:00 UTC
[jira] [Commented] (OAK-11264) CacheWarming tests seems flaky
[ https://issues.apache.org/jira/browse/OAK-11264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17922064#comment-17922064 ]
Julian Reschke commented on OAK-11264:
--------------------------------------
In
{noformat}
private DocumentStore newMongoDocumentStore() throws InterruptedException {
mongoConnection = connectionFactory.getConnection();
assumeNotNull(mongoConnection);
db = new CountingMongoDatabase(mongoConnection.getDatabase());
MongoUtils.dropCollections(db);
DocumentMK.Builder builder = new DocumentMK.Builder()
.clock(getTestClock()).setAsyncDelay(0);
MongoDocumentStore store = new MongoDocumentStore(mongoConnection.getMongoClient(), db, builder);
// mk = builder.setDocumentStore(store).open();
return store;
} {noformat}
we may want to catch Exceptions from "dropCollections" and skip the test using https://junit.org/junit4/javadoc/4.12/org/junit/Assume.html#assumeNoException(java.lang.Throwable)
> CacheWarming tests seems flaky
> ------------------------------
>
> Key: OAK-11264
> URL: https://issues.apache.org/jira/browse/OAK-11264
> Project: Jackrabbit Oak
> Issue Type: Task
> Components: documentmk
> Reporter: José Andrés Cordero Benítez
> Priority: Major
>
> Following tests are failing from time to time the CI pipeline:
> {code:java}
> org.apache.jackrabbit.oak.plugins.document.prefetch.CacheWarmingTest.simple_cleanCaches_withprefetch org.apache.jackrabbit.oak.plugins.document.prefetch.CacheWarmingTest.prefetch org.apache.jackrabbit.oak.plugins.document.prefetch.CacheWarmingTest.simple_nocleanCaches_noprefetch org.apache.jackrabbit.oak.plugins.document.prefetch.CacheWarmingTest.simple_cleanCaches_noprefetch org.apache.jackrabbit.oak.plugins.document.prefetch.CacheWarmingTest.simple_nocleanCaches_withprefetch{code}
> Example build: [https://ci-builds.apache.org/job/Jackrabbit/job/jackrabbit-oak-trunk/1685/]
> They all failed with same stacktrace:
> {code:java}
> com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:33510, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused (Connection refused)}}]
> at com.mongodb.internal.connection.BaseCluster.getDescription(BaseCluster.java:182)
> at com.mongodb.internal.connection.SingleServerCluster.getDescription(SingleServerCluster.java:41)
> at com.mongodb.client.internal.MongoClientDelegate.getConnectedClusterDescription(MongoClientDelegate.java:155)
> at com.mongodb.client.internal.MongoClientDelegate.createClientSession(MongoClientDelegate.java:105)
> at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.getClientSession(MongoClientDelegate.java:287)
> at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.execute(MongoClientDelegate.java:191)
> at com.mongodb.client.internal.MongoIterableImpl.execute(MongoIterableImpl.java:143)
> at com.mongodb.client.internal.MongoIterableImpl.iterator(MongoIterableImpl.java:92)
> at com.mongodb.client.internal.MappingIterable.iterator(MappingIterable.java:39) {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)