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

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

commit 0bfb52fa924840583859388c3a1956f925785a6f
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 188fabbc9a..e6d414ec32 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