Joscorbe opened a new pull request, #2422: URL: https://github.com/apache/jackrabbit-oak/pull/2422
Newer versions of Mongo Java Driver can return ClusterType.UNKNOWN while the Mongo cluster is still initializing, failing some tests since the cluster is just started immediately. A simple solution could be to just add a delay to the test itself, but this is something that could happen in production too, meaning the WriteConcern would default to **ACKNOWLEDGED**, which would be wrong if it is actually running against a ReplicaSet. For this reason, I'm adding a configurable delay of 5 seconds with retry to the `getDefaultWriteConcern` method. This should have no impact in most situations, since it's quite strange the Mongo cluster is not completely running when Oak tries to connect to it. Normal initialization time for Mongo clusters is around 3 seconds. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: oak-dev-unsubscr...@jackrabbit.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org