This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 74793bec90 Improve reporting of cluster message send failures
74793bec90 is described below
commit 74793bec90f6d72e1dceaee8bf36dab7f2ad9c13
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 c396213f65..446abe4423 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -432,6 +432,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="WebSocket">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]