camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zoran Regvart (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-11814) camel-spring-boot - Recent change in startup behaviour can cause camel-test-spring problems
Date Tue, 26 Sep 2017 08:43:00 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-11814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16180472#comment-16180472
] 

Zoran Regvart edited comment on CAMEL-11814 at 9/26/17 8:42 AM:
----------------------------------------------------------------

I've changed the {{NO_START}} flag to be a global (static) {{AtomicBoolean}} this will help
with race conditions between {{CamelMainRunController}} and {{SpringCamelContext/CamelContextFactoryBean}}
on different threads.

This fix conditions itself upon different {{(Spring)CamelContexts}} being in different classloaders
to work. As far as I'm aware this is true for {{wildfly-camel}}; and integration tests support
makes sure to manage the flag in single thread.


was (Author: zregvart):
I've changed the {{NO_START}} flag to be a global (static) {{AtomicBoolean}} this will help
with race conditions between {{CamelMainRunController}} and {{SpringCamelContext/CamelContextFactoryBean}}
on different threads.

This fix conditions itself upon different {{(Spring}CamelContexts}} being in different classloaders
to work.

> camel-spring-boot - Recent change in startup behaviour can cause camel-test-spring problems
> -------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-11814
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11814
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring, camel-spring-boot
>    Affects Versions: 2.20.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.20.0
>
>
> Creating this ticket up front as I was testing CiA2 source code with 2.20.0-SNAPSHOT
and have issues with a camel spring boot app, that caused the test method to be executed without
CamelContext been started prior - this works fine on 2.19.x and older versions.
> Its very likely the new startup/shutdown change in camel-spring / camel-spring-boot that
is causing a regression problem. A bit weird our own set of unit tests at Apache Camel hasn't
triggered this.
> Doing some more testing on CiA2 before posting more information here.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message