Skip to content

Commit e22c589

Browse files
raipcstrogiyotec
andauthored
Fix ServerMonitor thread name (#1861)
Current thread name is verbose and breaks integration with monitoring tools which prohibit `=` in label values Co-authored-by: Almas Abdrazak <almas337519@gmail.com>
1 parent 9b8c916 commit e22c589

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

driver-core/src/main/com/mongodb/internal/connection/DefaultServerMonitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class ServerMonitor extends Thread implements AutoCloseable {
181181
private volatile long lookupStartTimeNanos;
182182

183183
ServerMonitor() {
184-
super("cluster-" + serverId.getClusterId() + "-" + serverId.getAddress());
184+
super("cluster-" + serverId.getClusterId().getValue() + "-" + serverId.getAddress());
185185
setDaemon(true);
186186
}
187187

0 commit comments

Comments
 (0)