This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new e9e2f85c5803 CAMEL-26488: camel-mina - sync the producer timeout
upgrade note to the 4.22 and 4.18 guides on main (#29218)
e9e2f85c5803 is described below
commit e9e2f85c58035450e233a5dc367fb6d0e853c089
Author: Andrea Cosentino <[email protected]>
AuthorDate: Thu Nov 5 13:04:15 2026 +0100
CAMEL-26488: camel-mina - sync the producer timeout upgrade note to the
4.22 and 4.18 guides on main (#29218)
Co-Authored-By: Claude Opus 4.8 <[email protected]>
---
.../modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc | 10 ++++++++++
.../modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc
index 69c01274cbee..acd6afc193b1 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc
@@ -226,6 +226,16 @@ a header in the transferred exchange is no longer used,
also when the receiving
the `CamelNettySSLClientCert*` headers on a connection without a client
certificate). This also applies to the reply
the producer receives. Send any such value of the sender under a header name
of your own.
+=== camel-mina - the producer closes its session when a request times out
+
+A synchronous `mina` producer (`sync=true`) now always closes its session when
a request times out while waiting for a
+reply. Because a synchronous producer is pooled and reused for later
exchanges, a session kept open after a timeout
+could receive the late reply to the timed-out exchange and hand it to the next
exchange that reused the same producer.
+The producer now discards that session, so the next exchange opens a fresh one.
+
+The default behaviour is unchanged: `disconnectOnNoReply` defaults to `true`,
which already closed the session on a
+timeout. Setting `disconnectOnNoReply=false` no longer keeps the producer
session open after a timeout.
+
=== camel-oauth - the bearer token processor is stateless and reads the HTTP
request headers
`OAuthBearerTokenProcessor` no longer creates or updates the OAuth session,
and no longer sets the
diff --git
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
index 901ea226bded..9377eb828d13 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
@@ -159,6 +159,16 @@ a header in the transferred exchange is no longer used,
also when the receiving
the `CamelNettySSLClientCert*` headers on a connection without a client
certificate). This also applies to the reply
the producer receives. Send any such value of the sender under a header name
of your own.
+=== camel-mina - the producer closes its session when a request times out
+
+A synchronous `mina` producer (`sync=true`) now always closes its session when
a request times out while waiting for a
+reply. Because a synchronous producer is pooled and reused for later
exchanges, a session kept open after a timeout
+could receive the late reply to the timed-out exchange and hand it to the next
exchange that reused the same producer.
+The producer now discards that session, so the next exchange opens a fresh one.
+
+The default behaviour is unchanged: `disconnectOnNoReply` defaults to `true`,
which already closed the session on a
+timeout. Setting `disconnectOnNoReply=false` no longer keeps the producer
session open after a timeout.
+
=== camel-elasticsearch-rest-client - the credentials are only sent to the
nodes of the cluster
The `user` and `password` are now offered only to the nodes the client talks
to: the hosts of `hostAddressesList` and,