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 d26b17df8dbe308150dbe27f28c282e03e0252f5 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]
