[
https://issues.apache.org/jira/browse/CAMEL-25112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-25112:
--------------------------------
Fix Version/s: 4.23.0
> camel-core - The local properties of the properties component should be per
> thread
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-25112
> URL: https://issues.apache.org/jira/browse/CAMEL-25112
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.23.0
>
>
> The local properties of the properties component (such as the parameters of a
> route template, used while creating a route from the template) are kept in a
> single stack that is shared by all threads (since CAMEL-21675), while the
> javadoc says they are local for the current thread. Camel starts routes in a
> thread safe way itself, but to prepare for adding routes dynamically from
> multiple threads, the local properties should be per thread.
> Also:
> * When starting routes, the local properties are removed after each route,
> also for a route that did not add any (a route that is not from a route
> template), which removes local properties added by the caller.
> * camel-main configures {{camel.aiObservability.enabled}} as a local property
> (that is never removed). As it is removed when the routes are started (see
> above), and is not seen by other threads, the setting is lost, so
> {{aiObservability().withEnabled(false)}} does not disable GenAI observability
> when there are routes. The setting is now configured as an override property.
> _Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)