You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2008/06/13 06:18:00 UTC

[jira] Created: (CAMEL-605) intermittent test failure in SpringDataSetTest

intermittent test failure in SpringDataSetTest
----------------------------------------------

                 Key: CAMEL-605
                 URL: https://issues.apache.org/activemq/browse/CAMEL-605
             Project: Apache Camel
          Issue Type: Test
            Reporter: Freeman Fang
            Priority: Minor
             Fix For: 1.4.0


I notice that in bamboo nightly build recently SpringDataSetTest failed intermittently.
I try this test on my local machine, I can see this test failure once about every 10 times try


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-605) intermittent test failure in SpringDataSetTest

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43469#action_43469 ] 

Claus Ibsen commented on CAMEL-605:
-----------------------------------

A workaround to the failed spring unit test is to use a different queue such as the direct one. However we still have this bug with concurrent seda

> intermittent test failure in SpringDataSetTest
> ----------------------------------------------
>
>                 Key: CAMEL-605
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-605
>             Project: Apache Camel
>          Issue Type: Test
>            Reporter: Freeman Fang
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> I notice that in bamboo nightly build recently SpringDataSetTest failed intermittently.
> I try this test on my local machine, I can see this test failure once about every 10 times try

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-605) intermittent test failure in SpringDataSetTest

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43474#action_43474 ] 

Claus Ibsen commented on CAMEL-605:
-----------------------------------

I am changing this to use direct queues so it wont fail from time to time on Bamboo. 
I will then create a unit test in camel-core that demonstrates the seda concurrency issue bug, that we can use as baseline for fixing that issue.

> intermittent test failure in SpringDataSetTest
> ----------------------------------------------
>
>                 Key: CAMEL-605
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-605
>             Project: Apache Camel
>          Issue Type: Test
>            Reporter: Freeman Fang
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> I notice that in bamboo nightly build recently SpringDataSetTest failed intermittently.
> I try this test on my local machine, I can see this test failure once about every 10 times try

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-605) intermittent test failure in SpringDataSetTest

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43466#action_43466 ] 

Claus Ibsen commented on CAMEL-605:
-----------------------------------

Okay it must be the seda producer that has a concurrency issue:

I have added some logging (CollectionProducer = SedaProducer)

{code}
2008-06-15 20:23:29,875 DEBUG CollectionProducer - Producing: Exchange[Message: Hello World from message number 8] with headers: {camelDataSetIndex=8} 
2008-06-15 20:23:29,875 DEBUG CollectionProducer - Producing: Exchange[Message: Hello World from message number 9] with headers: {camelDataSetIndex=9} 
2008-06-15 20:23:29,875 DEBUG CollectionProducer - Producing: Exchange[Message: Hello World from message number 10] with headers: {camelDataSetIndex=10} 
2008-06-15 20:23:29,875 DEBUG CollectionProducer - Producing: Exchange[Message: Hello World from message number 11] with headers: {camelDataSetIndex=11} 
2008-06-15 20:23:29,875 DEBUG CollectionProducer - Producing: Exchange[Message: Hello World from message number 12] with headers: {camelDataSetIndex=0} 
2008-06-15 20:23:29,875 DEBUG CollectionProducer - Producing: Exchange[Message: Hello World from message number 13] with headers: {camelDataSetIndex=13} 
2008-06-15 20:23:29,875 DEBUG CollectionProducer - Producing: Exchange[Message: Hello World from message number 14] with headers: {camelDataSetIndex=14} 
2008-06-15 20:23:29,875 DEBUG CollectionProducer - Producing: Exchange[Message: Hello World from message number 15] with headers: {camelDataSetIndex=15} 
{code}

> intermittent test failure in SpringDataSetTest
> ----------------------------------------------
>
>                 Key: CAMEL-605
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-605
>             Project: Apache Camel
>          Issue Type: Test
>            Reporter: Freeman Fang
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> I notice that in bamboo nightly build recently SpringDataSetTest failed intermittently.
> I try this test on my local machine, I can see this test failure once about every 10 times try

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-605) intermittent test failure in SpringDataSetTest

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43468#action_43468 ] 

Claus Ibsen commented on CAMEL-605:
-----------------------------------

The problem is CollectionProducer that copies the exchange to produce. However it looks like that exchange.copy is not safe in concurrent environments. Maybe we get bitten by some shared objects for the headers.

Copying the information "more manually" fixes the problem.

> intermittent test failure in SpringDataSetTest
> ----------------------------------------------
>
>                 Key: CAMEL-605
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-605
>             Project: Apache Camel
>          Issue Type: Test
>            Reporter: Freeman Fang
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> I notice that in bamboo nightly build recently SpringDataSetTest failed intermittently.
> I try this test on my local machine, I can see this test failure once about every 10 times try

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CAMEL-605) intermittent test failure in SpringDataSetTest

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-605:
---------------------------------

    Assignee: Claus Ibsen

> intermittent test failure in SpringDataSetTest
> ----------------------------------------------
>
>                 Key: CAMEL-605
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-605
>             Project: Apache Camel
>          Issue Type: Test
>            Reporter: Freeman Fang
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> I notice that in bamboo nightly build recently SpringDataSetTest failed intermittently.
> I try this test on my local machine, I can see this test failure once about every 10 times try

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-605) intermittent test failure in SpringDataSetTest

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43465#action_43465 ] 

Claus Ibsen commented on CAMEL-605:
-----------------------------------

a bit odd how the exhange is created. The content and the header doesnt match up.
Message number 50: suddenly have a index of only 5.

And later on we get more and more of these missmatches.

{code}
2008-06-15 19:52:56,562 DEBUG SedaConsumer - Consuming: Exchange[Message: Hello World from message number 45] with header {camelDataSetIndex=45} 
2008-06-15 19:52:56,562 DEBUG SedaConsumer - Consuming: Exchange[Message: Hello World from message number 46] with header {camelDataSetIndex=46} 
2008-06-15 19:52:56,562 DEBUG SedaConsumer - Consuming: Exchange[Message: Hello World from message number 47] with header {camelDataSetIndex=47} 
2008-06-15 19:52:56,562 DEBUG SedaConsumer - Consuming: Exchange[Message: Hello World from message number 48] with header {camelDataSetIndex=48} 
2008-06-15 19:52:56,562 DEBUG SedaConsumer - Consuming: Exchange[Message: Hello World from message number 49] with header {camelDataSetIndex=49} 
2008-06-15 19:52:56,562 DEBUG SedaConsumer - Consuming: Exchange[Message: Hello World from message number 50] with header {camelDataSetIndex=5} 
2008-06-15 19:52:56,562 DEBUG SedaConsumer - Consuming: Exchange[Message: Hello World from message number 51] with header {camelDataSetIndex=51} 
2008-06-15 19:52:56,562 DEBUG SedaConsumer - Consuming: Exchange[Message: Hello World from message number 52] with header {camelDataSetIndex=52} 
2008-06-15 19:52:56,562 DEBUG SedaConsumer - Consuming: Exchange[Message: Hello World from message number 53] with header {camelDataSetIndex=53} 
2008-06-15 19:52:56,562 DEBUG SedaConsumer - Consuming: Exchange[Message: Hello World from message number 54] with header {camelDataSetIndex=54}
...
2008-06-15 19:52:56,625 DEBUG SedaConsumer - Consuming: Exchange[Message: Hello World from message number 193] with header {camelDataSetIndex=63} 
{code}

> intermittent test failure in SpringDataSetTest
> ----------------------------------------------
>
>                 Key: CAMEL-605
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-605
>             Project: Apache Camel
>          Issue Type: Test
>            Reporter: Freeman Fang
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> I notice that in bamboo nightly build recently SpringDataSetTest failed intermittently.
> I try this test on my local machine, I can see this test failure once about every 10 times try

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-605) intermittent test failure in SpringDataSetTest

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43449#action_43449 ] 

Freeman Fang commented on CAMEL-605:
------------------------------------

seems other guys already found this problem

On Jun 6, 2008, at 1:12 AM, Claus Ibsen wrote:

> Hi
>
> Why does the SpringDataSetTest fails once in a while on the Bamboo? It's a bit annoying.
>
>
> SpringDataSetTest : Run (testRun) History
> java.lang.AssertionError: dataset:foo Failed due to caught exception: java.lang.AssertionError: Header: camelDataSetIndex does not match. Expected: 9 but was: 8 on  Exchange[Message: <hello>world!</hello>] with headers: {camelDataSetIndex=8}
>     at org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:662)
>     at org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:240)
>     at org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:199)
>     at org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:126)
>     at org.apache.camel.component.dataset.SpringDataSetTest.testRun(SpringDataSetTest.java:34)
>
>
> Med venlig hilsen
>
> Claus Ibsen
> ......................................
> Silverbullet
> Skovsgårdsvænget 21
> 8362 Hørning
> Tlf. +45 2962 7576
> Web: www.silverbullet.dk
>



> intermittent test failure in SpringDataSetTest
> ----------------------------------------------
>
>                 Key: CAMEL-605
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-605
>             Project: Apache Camel
>          Issue Type: Test
>            Reporter: Freeman Fang
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> I notice that in bamboo nightly build recently SpringDataSetTest failed intermittently.
> I try this test on my local machine, I can see this test failure once about every 10 times try

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-605) intermittent test failure in SpringDataSetTest

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-605.
-------------------------------

    Resolution: Fixed

Bamboo should be happy now.

Added a new unit test that demonstrates the bug in camel-core. DataSetSedaTest.
Unit test is exluded by default until we have the seda combined with dataset fixed.

> intermittent test failure in SpringDataSetTest
> ----------------------------------------------
>
>                 Key: CAMEL-605
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-605
>             Project: Apache Camel
>          Issue Type: Test
>            Reporter: Freeman Fang
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> I notice that in bamboo nightly build recently SpringDataSetTest failed intermittently.
> I try this test on my local machine, I can see this test failure once about every 10 times try

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.