-
Type:
Bug
-
Resolution: Done
-
Priority:
Critical - P2
-
None
-
Affects Version/s: 2.11.1
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The java driver now has many wait() around the code that blocks until a server is up.
For example:
private synchronized ConnectionStatus getConnectionStatus() {
if (connectionStatus == null) {
try {
wait(_mongo.getMongoOptions().getConnectTimeout());
} catch (InterruptedException e) {
throw new MongoInterruptedException("Interrupted while waiting for next update to dynamic status", e);
}
}
return connectionStatus;
}
This design is surprising because the driver did not block in older version.
This can prevent the app from starting up.