Details
-
Bug
-
Resolution: Done
-
Critical - P2
-
None
-
2.11.1
-
None
-
None
Description
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.