This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch kamelet2 in repository https://gitbox.apache.org/repos/asf/camel.git
commit 1c023544b0fc41e262f2ce80f83a7a2f65a76f8f Author: Claus Ibsen <[email protected]> AuthorDate: Mon Jan 27 11:12:37 2025 +0100 CAMEL-21599: camel-kamelet - Rework error handler for kamelets to be more standard Camel. WIP --- .../modules/ROOT/pages/camel-4x-upgrade-guide-4_10.adoc | 4 ++++ .../component/dsl/KameletComponentBuilderFactory.java | 13 +++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_10.adoc b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_10.adoc index 46297001060..6a70780ce33 100644 --- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_10.adoc +++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_10.adoc @@ -150,6 +150,10 @@ Suppose the sink kamelet is throwing an exception, then Camel will now perform t at the point of origin, which means inside the Kamelet. Previously the redelivery will only happen at the route level, calling the kamelet all over again. +The option `noErrorHandler` has changed default from `true` to `false`. You should only +use this option if you want to turn on error handling inside Kamelets all together. However, +this should only be used in advanced/rare use-cases. This option may in the future be deprecated and removed. + === camel-azure-files The class `org.apache.camel.component.file.azure.FilesHeaders` has been renamed to `org.apache.camel.component.file.azure.FilesConstants`. diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/KameletComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/KameletComponentBuilderFactory.java index 4a130be69d6..c2df77bea30 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/KameletComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/KameletComponentBuilderFactory.java @@ -213,13 +213,18 @@ public interface KameletComponentBuilderFactory { /** - * Kamelets, by default, will not do fine-grained error handling, but - * works in no-error-handler mode. This can be turned off, to use old - * behaviour in earlier versions of Camel. + * Whether kamelets should use error handling or not. By default, the + * Kamelet uses the same error handler as from the calling route. This + * means that if the calling route has error handling that performs + * retries, or routing to a dead letter channel, then the kamelet route + * will use this also. This can be turned off by setting this option to + * true. If off then the kamelet route is not using error handling, and + * any exception thrown will for source kamelets be logged by the + * consumer, and the sink/action kamelets will fail processing. * * The option is a: <code>boolean</code> type. * - * Default: true + * Default: false * Group: advanced * * @param noErrorHandler the value to set
