diff options
author | Harald Musum <musum@yahooinc.com> | 2021-09-30 14:25:26 +0200 |
---|---|---|
committer | Harald Musum <musum@yahooinc.com> | 2021-09-30 14:25:26 +0200 |
commit | b38b34584a16f791c29f9a72245f1253b8de1bbb (patch) | |
tree | 5a2a3bfece2048c9b3ba083f323ad900762ad608 /config/src/main/java | |
parent | 0393d7fd226cecc0c15d26f83799451a5da0127c (diff) |
Log pool name when switching connection
Diffstat (limited to 'config/src/main/java')
-rw-r--r-- | config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java b/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java index b5147075972..78580328bf9 100644 --- a/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java +++ b/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java @@ -38,12 +38,12 @@ public class JRTConnectionPool implements ConnectionPool { private volatile JRTConnection currentConnection; public JRTConnectionPool(ConfigSourceSet sourceSet) { - this(sourceSet, "config-jrt-pool-" + sourceSet.hashCode()); + this(sourceSet, "config-jrt-pool" + sourceSet.hashCode()); } public JRTConnectionPool(ConfigSourceSet sourceSet, String poolName) { this.poolName = poolName; - supervisor = new Supervisor(new Transport(poolName)).setDropEmptyBuffers(true); + supervisor = new Supervisor(new Transport(poolName + "-")).setDropEmptyBuffers(true); addSources(sourceSet); } @@ -91,7 +91,7 @@ public class JRTConnectionPool implements ConnectionPool { List<JRTConnection> sourceCandidates = getSources(); sourceCandidates.remove(currentConnection); JRTConnection newConnection = pickNewConnectionRandomly(sourceCandidates); - log.log(Level.INFO, () -> "Switching from " + currentConnection + " to " + newConnection); + log.log(Level.INFO, () -> poolName + ": Switching from " + currentConnection + " to " + newConnection); return currentConnection = newConnection; } |