You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2026/10/01 06:41:47 UTC
(tomcat) 24/25: Name the fallback manager created by SimpleTcpCluster.createManager() when cloning the manager template fails so that its replication messages carry a context name and are not routed to every context on the receiving nodes
This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 5559d4e7e695e96318defb75a08215980aa803c2
Author: opencode <re...@apache.org>
AuthorDate: Wed Sep 30 23:11:54 2026 +0200
Name the fallback manager created by SimpleTcpCluster.createManager() when cloning the manager template fails so that its replication messages carry a context name and are not routed to every context on the receiving nodes
---
java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java b/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
index e3ef492d3d..5b709b91fc 100644
--- a/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
+++ b/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
@@ -464,6 +464,10 @@ public class SimpleTcpCluster extends LifecycleMBeanBase
} catch (Exception e) {
log.error(sm.getString("simpleTcpCluster.clustermanager.cloneFailed"), e);
manager = new DeltaManager();
+ // The name is required for replication message routing, a null
+ // name would make the receiving nodes apply the messages to all
+ // contexts
+ manager.setName(name);
} finally {
if (manager != null) {
manager.setCluster(this);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org