This is an automated email from the ASF dual-hosted git repository. rmaucher pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 570a39e267a7b5bde7319fbf5b016f54d40af842 Author: opencode <[email protected]> AuthorDate: Wed Sep 30 23:10:04 2026 +0200 Fire the SEND_MESSAGE_FAILURE_EVENT lifecycle event with the failing message, destination and exception from SimpleTcpCluster.send() when notifyLifecycleListenerOnFailure is enabled, making the previously declared but never fired event work as documented --- java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java | 4 ++++ webapps/docs/changelog.xml | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java b/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java index e6d414ec32..7f1f0de2ad 100644 --- a/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java +++ b/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java @@ -773,6 +773,10 @@ public class SimpleTcpCluster extends LifecycleMBeanBase } } catch (Exception e) { log.error(sm.getString("simpleTcpCluster.sendFailed"), e); + if (notifyLifecycleListenerOnFailure) { + // Notify our interested LifecycleListeners + fireLifecycleEvent(SEND_MESSAGE_FAILURE_EVENT, new SendMessageData(msg, dest, e)); + } } } diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 4269be1ca1..870a4d7aa0 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -196,6 +196,13 @@ session attribute listener notifications, may in turn wait for the session monitor. (remm) </fix> + <fix> + Fire the documented <code>send_message_failure</code> lifecycle event + with the message, destination and exception when a + <code>SimpleTcpCluster</code> message send fails and + <code>notifyLifecycleListenerOnFailure</code> is enabled. The event + was previously declared but never fired. (remm) + </fix> </changelog> </subsection> <subsection name="Web applications"> @@ -4602,6 +4609,7 @@ <subsection name="Cluster"> <changelog> <fix> +<<<<<<< HEAD Avoid updating request count stats on async. (remm) </fix> </changelog> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
