New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CAMEL-20545: Using replaceFromWith with camel-test and having route t… #13485
Conversation
…emplates can lead to duplicate consumer on starutp error.
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🤖 CI automation will test this PR automatically. 🐫 Apache Camel Committers, please review the following items:
|
…emplates can lead to duplicate consumer on starutp error. (apache#13485) (cherry picked from commit 8aab61a)
…emplates can lead to duplicate consumer on starutp error. (apache#13485) (cherry picked from commit 8aab61a)
…ute template (#13824) * CAMEL-20614: deep-copy output processors during instantiation of a route template When multiple threads try to instantiate and send an exchange to the same kamelet in parallel, org.apache.camel.component.kamelet.KameletConsumerNotAvailableException may be thrown because the underlying RouteTemplateDefinition is shallow-copied and changes to the RouteDefinition are reflected in the RouteTemplateDefinition. CAMEL-20614: deep-copy output processors during instantiation of a route template When multiple threads try to instantiate and send an exchange to the same kamelet in parallel, org.apache.camel.component.kamelet.KameletConsumerNotAvailableException may be thrown because the underlying RouteTemplateDefinition is shallow-copied and changes to the RouteDefinition are reflected in the RouteTemplateDefinition. * CAMEL-20545: Using replaceFromWith with camel-test and having route templates can lead to duplicate consumer on starutp error. (#13485) (cherry picked from commit 8aab61a) * CAMEL-20614: add shallowCopy as per code review comment * CAMEL-20614: update access modifiers of copy constructors to be protected as per code review comment * CAMEL-20614: add unit tests --------- Co-authored-by: Claus Ibsen <claus.ibsen@gmail.com>
…ute template (#13824) * CAMEL-20614: deep-copy output processors during instantiation of a route template When multiple threads try to instantiate and send an exchange to the same kamelet in parallel, org.apache.camel.component.kamelet.KameletConsumerNotAvailableException may be thrown because the underlying RouteTemplateDefinition is shallow-copied and changes to the RouteDefinition are reflected in the RouteTemplateDefinition. CAMEL-20614: deep-copy output processors during instantiation of a route template When multiple threads try to instantiate and send an exchange to the same kamelet in parallel, org.apache.camel.component.kamelet.KameletConsumerNotAvailableException may be thrown because the underlying RouteTemplateDefinition is shallow-copied and changes to the RouteDefinition are reflected in the RouteTemplateDefinition. * CAMEL-20545: Using replaceFromWith with camel-test and having route templates can lead to duplicate consumer on starutp error. (#13485) (cherry picked from commit 8aab61a) * CAMEL-20614: add shallowCopy as per code review comment * CAMEL-20614: update access modifiers of copy constructors to be protected as per code review comment * CAMEL-20614: add unit tests --------- Co-authored-by: Claus Ibsen <claus.ibsen@gmail.com>
…emplates can lead to duplicate consumer on starutp error.
Description
Target
camel-3.x
, whereas Camel 4 uses themain
branch)Tracking
Apache Camel coding standards and style
mvn clean install -DskipTests
locally and I have committed all auto-generated changes