This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new e3bb1e3bfc Improve reporting of cluster message send failures
e3bb1e3bfc is described below
commit e3bb1e3bfcc0dfa436c19317ccd5816ed2777fe1
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 e53e7af403..15aa970c82 100644
--- a/java/org/apache/catalina/tribes/ChannelException.java
+++ b/java/org/apache/catalina/tribes/ChannelException.java
@@ -115,7 +115,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 8dead1a054..7f6fa7658b 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]