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 52ed63ac8dba CAMEL-24923: sync main doc with backport (#30896) for
WeightedLoadBalancer (#31061)
52ed63ac8dba is described below
commit 52ed63ac8dbac4338c1082821af21feb5e307297
Author: Guillaume Nodet <[email protected]>
AuthorDate: Sat Nov 28 09:32:58 2026 +0100
CAMEL-24923: sync main doc with backport (#30896) for WeightedLoadBalancer
(#31061)
CAMEL-24923: sync main with backport doc changes for WeightedLoadBalancer
- Add 'Weighted Load Balancer EIP' entry to '== Upgrading from 4.22.3 to
4.22.4'
in the upgrade guide (follow-up from #30896 / davsclaus review)
- Split the ratio validation sentence into three in
weightedLoadBalancer-eip.adoc
and its catalog copy, matching the sentence structure on camel-4.22.x
---
.../org/apache/camel/catalog/docs/weightedLoadBalancer-eip.adoc | 5 +++--
.../src/main/docs/modules/eips/pages/weightedLoadBalancer-eip.adoc | 5 +++--
.../modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc | 7 +++++++
3 files changed, 13 insertions(+), 4 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/weightedLoadBalancer-eip.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/weightedLoadBalancer-eip.adoc
index 4e8422397d96..9213314c64e1 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/weightedLoadBalancer-eip.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/weightedLoadBalancer-eip.adoc
@@ -28,8 +28,9 @@ In this example, we want to send the most message to the
first endpoint, then th
The distribution ratio is `7 = 4 + 2 + 1`.
This means that for every seventh message then 4 goes to the first, 2 for the
second, and 1 for the last.
-Each ratio must be zero or a positive number, at least one ratio must be
positive, and the sum of the ratios
-must not be greater than `2147483647`. Otherwise, the route fails to start.
+Each ratio must be zero or a positive number.
+At least one ratio must be positive, and the sum must not be greater than
`2147483647`.
+Otherwise, the route fails to start.
An endpoint with ratio `0` does not receive any messages.
[tabs]
diff --git
a/core/camel-core-engine/src/main/docs/modules/eips/pages/weightedLoadBalancer-eip.adoc
b/core/camel-core-engine/src/main/docs/modules/eips/pages/weightedLoadBalancer-eip.adoc
index 4e8422397d96..9213314c64e1 100644
---
a/core/camel-core-engine/src/main/docs/modules/eips/pages/weightedLoadBalancer-eip.adoc
+++
b/core/camel-core-engine/src/main/docs/modules/eips/pages/weightedLoadBalancer-eip.adoc
@@ -28,8 +28,9 @@ In this example, we want to send the most message to the
first endpoint, then th
The distribution ratio is `7 = 4 + 2 + 1`.
This means that for every seventh message then 4 goes to the first, 2 for the
second, and 1 for the last.
-Each ratio must be zero or a positive number, at least one ratio must be
positive, and the sum of the ratios
-must not be greater than `2147483647`. Otherwise, the route fails to start.
+Each ratio must be zero or a positive number.
+At least one ratio must be positive, and the sum must not be greater than
`2147483647`.
+Otherwise, the route fails to start.
An endpoint with ratio `0` does not receive any messages.
[tabs]
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 6d6647099c4e..2efb6b6b52af 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
@@ -84,6 +84,13 @@ built a new `DefaultAzureCredential` with the default
settings, so a credential
`AZURE_IDENTITY` still builds a new `DefaultAzureCredential`. In
camel-azure-eventgrid, an explicit `credentialType`
`TOKEN_CREDENTIAL` or `AZURE_IDENTITY` is no longer replaced when
`tokenCredential` is set.
+=== Weighted Load Balancer EIP
+
+The distribution ratios of the weighted load balancer are now validated when
the route starts. A negative ratio,
+ratios that are all `0`, or ratios whose sum is greater than `2147483647` now
fail the route at startup with an
+`IllegalArgumentException`. Previously such a route started, but sending to it
could hang the caller, spin a CPU,
+or send every message to the same endpoint.
+
== Upgrading from 4.22.2 to 4.22.3
=== Undertow servlet implementation