We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac2c632 commit a749ba3Copy full SHA for a749ba3
driver-core/src/main/com/mongodb/internal/connection/DefaultServerMonitor.java
@@ -16,6 +16,7 @@
16
17
package com.mongodb.internal.connection;
18
19
+import com.mongodb.MongoInterruptedException;
20
import com.mongodb.MongoNamespace;
21
import com.mongodb.MongoSocketException;
22
import com.mongodb.ServerApi;
@@ -178,6 +179,10 @@ public void run() {
178
179
}
180
waitForNext();
181
182
+ } catch (MongoInterruptedException e) {
183
+ // ignore
184
+ } catch (RuntimeException e) {
185
+ LOGGER.error(format("Server monitor for %s exiting with exception", serverId), e);
186
} finally {
187
if (connection != null) {
188
connection.close();
0 commit comments