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

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

commit 03e6e543bf25373864d744dce5e4f7ced223b1f1
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Nov 11 15:03:08 2025 +0000

    Fix a regression in clustering
---
 java/org/apache/catalina/tribes/group/RpcChannel.java | 2 +-
 webapps/docs/changelog.xml                            | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/tribes/group/RpcChannel.java 
b/java/org/apache/catalina/tribes/group/RpcChannel.java
index c26cff473c..ab2157afc2 100644
--- a/java/org/apache/catalina/tribes/group/RpcChannel.java
+++ b/java/org/apache/catalina/tribes/group/RpcChannel.java
@@ -101,7 +101,7 @@ public class RpcChannel implements ChannelListener {
                 channel.send(destination, rmsg, sendOptions);
                 if (rpcOptions != NO_REPLY) {
                     long timeoutExpiry = System.nanoTime() + timeout * 
1_000_000;
-                    while (collector.isComplete() && timeout > 0) {
+                    while (!collector.isComplete() && timeout > 0) {
                         collector.wait(timeout);
                         timeout = (timeoutExpiry - System.nanoTime()) / 
1_000_000;
                     }
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index f64474c14a..280825b474 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -113,6 +113,14 @@
       </fix>
     </changelog>
   </subsection>
+  <subsection name="Clustering">
+    <changelog>
+      <fix>
+        Correct a regression introduced in 9.0.109 that broke some clustering
+        configurations. (markt)
+      </fix>
+    </changelog>
+  </subsection>
 </section>
 <section name="Tomcat 9.0.112 (remm)" rtext="release in progress">
   <subsection name="Catalina">


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

Reply via email to