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

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


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 266fd2f58b Improve reporting of cluster message send failures
266fd2f58b is described below

commit 266fd2f58b7485cbd405d320285a581eaec87dd6
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Nov 20 13:51:37 2026 +0000

    Improve reporting of cluster message send failures
---
 java/org/apache/catalina/tribes/ChannelException.java | 10 ++++++++++
 webapps/docs/changelog.xml                            |  4 ++++
 2 files changed, 14 insertions(+)

diff --git a/java/org/apache/catalina/tribes/ChannelException.java 
b/java/org/apache/catalina/tribes/ChannelException.java
index 784b831492..8d60e73b65 100644
--- a/java/org/apache/catalina/tribes/ChannelException.java
+++ b/java/org/apache/catalina/tribes/ChannelException.java
@@ -113,7 +113,17 @@ public class ChannelException extends Exception {
                 } else {
                     buf.append("; ");
                 }
+                buf.append("[[");
                 buf.append(mbr.getMember().getName());
+                buf.append("],[");
+                if (mbr.cause == null || mbr.cause.getMessage() == null) {
+                    buf.append("unknown cause");
+                } else if (mbr.cause.getMessage() == null) {
+                    buf.append(mbr.cause.toString());
+                } else {
+                    buf.append(mbr.cause.getMessage());
+                }
+                buf.append("]]");
             }
         }
         return buf.toString();
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 2ac5755f0c..60709ee06d 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -258,6 +258,10 @@
         configuration and security considerations. Based on pull request
         <pr>1134</pr> by sainadh777. (markt)
       </docs>
+      <fix>
+        Improve reporting of faulty members when sending of cluster messages
+        fails. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Tribes">


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

Reply via email to