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 f3da7f932a37cd1e308accffb5c36215367bbb20
Author: opencode <[email protected]>
AuthorDate: Wed Sep 30 22:31:27 2026 +0200

    Skip auto-assigned-port connector thread pool MBeans in CollectedInfo since 
their name carries a name index rather than a port
---
 java/org/apache/catalina/ha/backend/CollectedInfo.java | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/java/org/apache/catalina/ha/backend/CollectedInfo.java 
b/java/org/apache/catalina/ha/backend/CollectedInfo.java
index 43450ba206..080fa23ac4 100644
--- a/java/org/apache/catalina/ha/backend/CollectedInfo.java
+++ b/java/org/apache/catalina/ha/backend/CollectedInfo.java
@@ -98,6 +98,14 @@ public class CollectedInfo {
                 objName = null;
                 continue;
             }
+            // A connector configured with an auto-assigned port is registered
+            // before its port is bound, with a name ending with
+            // "auto-<name index>" in which the last element is the name index,
+            // not a port, so it cannot be matched
+            if (elenames.length >= 3 && "auto".equals(elenames[elenames.length 
- 2])) {
+                objName = null;
+                continue;
+            }
             if (elenames.length == 4) {
                 shost = elenames[2];
             }


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

Reply via email to