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 d42870d7faf2fb9c1a0039eebb2eda1228ed92b8
Author: opencode <[email protected]>
AuthorDate: Wed Sep 30 23:08:08 2026 +0200

    Make hasMembers volatile so that membership changes made on the tribes 
membership thread are visible to the request threads that read it
---
 java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java 
b/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
index 7dfd70a47c..d4d7d6c614 100644
--- a/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
+++ b/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
@@ -377,7 +377,7 @@ public class SimpleTcpCluster extends LifecycleMBeanBase
     /**
      * has members
      */
-    protected boolean hasMembers = false;
+    protected volatile boolean hasMembers = false;
 
     /**
      * {@inheritDoc}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to