This is an automated email from the ASF dual-hosted git repository.

rmaucher pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit b49da4a16310f12629e2faeb53b28d4b76d006cb
Author: opencode <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to