mreutegg commented on code in PR #295: URL: https://github.com/apache/jackrabbit-oak/pull/295#discussion_r962886110
########## oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongodProcessFactory.java: ########## @@ -145,7 +147,8 @@ private void initRS(String rs, int[] ports) { } Document config = new Document("_id", rs); config.append("members", members); - try (MongoClient c = new MongoClient(localhost(), ports[0])) { + ConnectionString mongoURI = new ConnectionString(localhost()); + try (MongoClient c = MongoClients.create(localhost())) { Review Comment: This does not look right to me. `mongoURI` is never used and IIUC the MongoClient created here will try to connect to a MongoDB instance on the default port, which isn't necessarily the case. -- 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: dev-unsubscr...@jackrabbit.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org