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

    Reset noContextManagerReceived in DeltaManager.getAllClusterSessions() 
alongside stateTransferred so that a repeated state transfer does not exit 
immediately on a stale response
---
 java/org/apache/catalina/ha/session/DeltaManager.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/java/org/apache/catalina/ha/session/DeltaManager.java 
b/java/org/apache/catalina/ha/session/DeltaManager.java
index 842c586da6..36c0c61d0b 100644
--- a/java/org/apache/catalina/ha/session/DeltaManager.java
+++ b/java/org/apache/catalina/ha/session/DeltaManager.java
@@ -839,7 +839,11 @@ public class DeltaManager extends ClusterManagerBase {
             if (enableStatistics) {
                 counterSend_EVT_GET_ALL_SESSIONS.incrementAndGet();
             }
+            // Reset both flags that terminate the wait for the state transfer,
+            // so that a repeated transfer (context restart or JMX resync) does
+            // not exit immediately on a response from a previous transfer
             stateTransferred = false;
+            noContextManagerReceived = false;
             // FIXME This send call block the deploy thread, when sender 
waitForAck is enabled
             try {
                 synchronized (receivedMessageQueue) {


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

Reply via email to