mongodb: 8.0.6
FILE:
https://github.com/SoftInstigate/restheart/blob/master/commons/src/main/java/org/restheart/mongodb/ConnectionChecker.java
https://github.com/SoftInstigate/restheart/blob/master/commons/src/main/java/org/restheart/mongodb/ConnectionChecker.java
(https://github.com/SoftInstigate/restheart/blob/e82098f5e20c9811d58b96c50392c7a5dcb2effb/commons/src/main/java/org/restheart/mongodb/ConnectionChecker.java#L67)
// this throws an exception if not running as replica set
mclient.getDatabase("admin").runCommand(document().put("replSetGetStatus", 1).get());
This not working for: mongos (router)
Actually after entering mongos, you have to continue to shards or check the repl config. I have deployed here and definitely set up repl so I forced it to return true
Comments
Post a Comment