You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2010/03/02 22:37:44 UTC

[jira] Created: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

AggregateGroupedExchangeMultipleCorrelationTest fails
-----------------------------------------------------

                 Key: CAMEL-2517
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
             Project: Apache Camel
          Issue Type: Test
          Components: camel-core
    Affects Versions: 2.2.0
         Environment: Windows Vista
            Reporter: Christian Schneider
             Fix For: 2.3.0
         Attachments: camel-core-2010-01-02.patch

On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.


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


[jira] Assigned: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

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

Claus Ibsen reassigned CAMEL-2517:
----------------------------------

    Assignee: Claus Ibsen

> AggregateGroupedExchangeMultipleCorrelationTest fails
> -----------------------------------------------------
>
>                 Key: CAMEL-2517
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.2.0
>         Environment: Windows Vista
>            Reporter: Christian Schneider
>            Assignee: Claus Ibsen
>             Fix For: 2.3.0
>
>         Attachments: camel-core-2010-01-02.patch, camel-core-2010-03-03.patch, failure_100ms.txt, success_1000ms.txt
>
>
> On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
> When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.

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


[jira] Closed: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

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

Christian Schneider closed CAMEL-2517.
--------------------------------------


> AggregateGroupedExchangeMultipleCorrelationTest fails
> -----------------------------------------------------
>
>                 Key: CAMEL-2517
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.2.0
>         Environment: Windows Vista
>            Reporter: Christian Schneider
>            Assignee: Claus Ibsen
>             Fix For: 2.3.0
>
>         Attachments: camel-core-2010-01-02.patch, camel-core-2010-03-03.patch, failure_100ms.txt, success_1000ms.txt
>
>
> On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
> When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.

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


[jira] Commented: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

Posted by "Christian Schneider (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58007#action_58007 ] 

Christian Schneider commented on CAMEL-2517:
--------------------------------------------

Hi Claus,

I am currently trying to understand the code in Aggregator. Though I can´t  say I fully understand everything I stumbled over something interesting.
In line 488 there is the following command:
timeoutMap = new AggregationTimeoutMap(scheduler, 1000L);

Could this be the reason why my timeout of 1000ms caused the success? If I understand this correctly the map only checks every 1000ms. So as the test by default only delays the last exchange for 100ms it is not sure which group times out first. When I lower the delay in line 488 to below 100ms the test works again. So I guess a valid fix could be to set the sleep to 1500ms and the completionTimeout to 2000ms. 

What do you think?

Greetings

Christian


> AggregateGroupedExchangeMultipleCorrelationTest fails
> -----------------------------------------------------
>
>                 Key: CAMEL-2517
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.2.0
>         Environment: Windows Vista
>            Reporter: Christian Schneider
>             Fix For: 2.3.0
>
>         Attachments: camel-core-2010-01-02.patch, failure_100ms.txt, success_1000ms.txt
>
>
> On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
> When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.

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


[jira] Reopened: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

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

Christian Schneider reopened CAMEL-2517:
----------------------------------------


I understand, that my fix is perhaps not correct. The problem remains though. The test is failing on my system. Do you have another idea how to fix it?


> AggregateGroupedExchangeMultipleCorrelationTest fails
> -----------------------------------------------------
>
>                 Key: CAMEL-2517
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.2.0
>         Environment: Windows Vista
>            Reporter: Christian Schneider
>             Fix For: 2.3.0
>
>         Attachments: camel-core-2010-01-02.patch
>
>
> On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
> When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.

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


[jira] Commented: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

Posted by "Christian Schneider (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58005#action_58005 ] 

Christian Schneider commented on CAMEL-2517:
--------------------------------------------

Hi  Claus,

I have tested only on one machine. I can try on my linux machine but I don´t have another windows machine.  Below you find the trace of the failure with 100ms. I will attach the trace logs for 1000ms and for 100ms.

Greetings

Christian


junit.framework.ComparisonFailure: expected:<1[3]0> but was:<1[0]0>
	at junit.framework.Assert.assertEquals(Assert.java:81)
	at junit.framework.Assert.assertEquals(Assert.java:87)
	at org.apache.camel.processor.aggregator.AggregateGroupedExchangeMultipleCorrelationTest.testGrouped(AggregateGroupedExchangeMultipleCorrelationTest.java:57)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at junit.framework.TestCase.runTest(TestCase.java:164)
	at junit.framework.TestCase.runBare(TestCase.java:130)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:120)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)



> AggregateGroupedExchangeMultipleCorrelationTest fails
> -----------------------------------------------------
>
>                 Key: CAMEL-2517
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.2.0
>         Environment: Windows Vista
>            Reporter: Christian Schneider
>             Fix For: 2.3.0
>
>         Attachments: camel-core-2010-01-02.patch, failure_100ms.txt, success_1000ms.txt
>
>
> On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
> When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.

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


[jira] Commented: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

Posted by "Christian Schneider (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58002#action_58002 ] 

Christian Schneider commented on CAMEL-2517:
--------------------------------------------

After reading your comment that you do not want reports about test failures without fixes feel free to close it again. Sorry if I cause any inconvenience here I am just trying to help.

> AggregateGroupedExchangeMultipleCorrelationTest fails
> -----------------------------------------------------
>
>                 Key: CAMEL-2517
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.2.0
>         Environment: Windows Vista
>            Reporter: Christian Schneider
>             Fix For: 2.3.0
>
>         Attachments: camel-core-2010-01-02.patch
>
>
> On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
> When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.

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


[jira] Commented: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

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

Claus Ibsen commented on CAMEL-2517:
------------------------------------

Thanks for being patience and sticking up to my bigger ego.

Glad we got to the bottom of this and actually discovered it as an issue with the TimeoutMap.


> AggregateGroupedExchangeMultipleCorrelationTest fails
> -----------------------------------------------------
>
>                 Key: CAMEL-2517
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.2.0
>         Environment: Windows Vista
>            Reporter: Christian Schneider
>            Assignee: Claus Ibsen
>             Fix For: 2.3.0
>
>         Attachments: camel-core-2010-01-02.patch, camel-core-2010-03-03.patch, failure_100ms.txt, success_1000ms.txt
>
>
> On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
> When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.

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


[jira] Resolved: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

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

Claus Ibsen resolved CAMEL-2517.
--------------------------------

    Resolution: Fixed

> AggregateGroupedExchangeMultipleCorrelationTest fails
> -----------------------------------------------------
>
>                 Key: CAMEL-2517
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.2.0
>         Environment: Windows Vista
>            Reporter: Christian Schneider
>            Assignee: Claus Ibsen
>             Fix For: 2.3.0
>
>         Attachments: camel-core-2010-01-02.patch, camel-core-2010-03-03.patch, failure_100ms.txt, success_1000ms.txt
>
>
> On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
> When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.

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


[jira] Updated: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

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

Christian Schneider updated CAMEL-2517:
---------------------------------------

    Attachment: camel-core-2010-01-02.patch

Increased sleep to 1000ms

> AggregateGroupedExchangeMultipleCorrelationTest fails
> -----------------------------------------------------
>
>                 Key: CAMEL-2517
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.2.0
>         Environment: Windows Vista
>            Reporter: Christian Schneider
>             Fix For: 2.3.0
>
>         Attachments: camel-core-2010-01-02.patch
>
>
> On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
> When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.

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


[jira] Commented: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

Posted by "Christian Schneider (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58036#action_58036 ] 

Christian Schneider commented on CAMEL-2517:
--------------------------------------------

The test now works for me. Many thanks

> AggregateGroupedExchangeMultipleCorrelationTest fails
> -----------------------------------------------------
>
>                 Key: CAMEL-2517
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.2.0
>         Environment: Windows Vista
>            Reporter: Christian Schneider
>            Assignee: Claus Ibsen
>             Fix For: 2.3.0
>
>         Attachments: camel-core-2010-01-02.patch, camel-core-2010-03-03.patch, failure_100ms.txt, success_1000ms.txt
>
>
> On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
> When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.

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


[jira] Updated: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

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

Christian Schneider updated CAMEL-2517:
---------------------------------------

    Attachment: camel-core-2010-03-03.patch

Added new patch with proposed timeouts

> AggregateGroupedExchangeMultipleCorrelationTest fails
> -----------------------------------------------------
>
>                 Key: CAMEL-2517
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.2.0
>         Environment: Windows Vista
>            Reporter: Christian Schneider
>             Fix For: 2.3.0
>
>         Attachments: camel-core-2010-01-02.patch, camel-core-2010-03-03.patch, failure_100ms.txt, success_1000ms.txt
>
>
> On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
> When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.

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


[jira] Commented: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

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

Claus Ibsen commented on CAMEL-2517:
------------------------------------

You  could at least show the failure message you get on your system.
And you could enable TRACE logging on {{org.apache.camel.processor.aggregate.AggregateProcessor}} and attach the log.

And have you tested it on other Windows computers as well?

> AggregateGroupedExchangeMultipleCorrelationTest fails
> -----------------------------------------------------
>
>                 Key: CAMEL-2517
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.2.0
>         Environment: Windows Vista
>            Reporter: Christian Schneider
>             Fix For: 2.3.0
>
>         Attachments: camel-core-2010-01-02.patch
>
>
> On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
> When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.

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


[jira] Updated: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

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

Christian Schneider updated CAMEL-2517:
---------------------------------------

    Attachment: success_1000ms.txt
                failure_100ms.txt

> AggregateGroupedExchangeMultipleCorrelationTest fails
> -----------------------------------------------------
>
>                 Key: CAMEL-2517
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.2.0
>         Environment: Windows Vista
>            Reporter: Christian Schneider
>             Fix For: 2.3.0
>
>         Attachments: camel-core-2010-01-02.patch, failure_100ms.txt, success_1000ms.txt
>
>
> On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
> When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.

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


[jira] Commented: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

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

Claus Ibsen commented on CAMEL-2517:
------------------------------------

The help is appreciated really, but if anyone creates a new JIRA anytime one of the 5500 Camel unit tests fails on their own laptop, then the JIRA will be filled with reports.

And if there is a test failure, then please dig into why it failed before opening a JIRA ticket.

I am asking for logs on this JIRA since your laptop should be able to complete 6 messages within 1 second. So I wonder what the precise error is on your system. You are supposed to have 2 outgoing messages. And then later these messages is checked its content is correct as well.

So your failure can happen in several places, and hence why I ask for the full error reported.

And the TRACE log will tell me how your system aggregates the incoming messages. Which can be used to compare with a green system and see why it dont work on your system.

> AggregateGroupedExchangeMultipleCorrelationTest fails
> -----------------------------------------------------
>
>                 Key: CAMEL-2517
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.2.0
>         Environment: Windows Vista
>            Reporter: Christian Schneider
>             Fix For: 2.3.0
>
>         Attachments: camel-core-2010-01-02.patch
>
>
> On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
> When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.

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


[jira] Resolved: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

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

Claus Ibsen resolved CAMEL-2517.
--------------------------------

    Resolution: Won't Fix

The idea with this test is that the aggregator timeout after 1 second of inactivity, and we want both groups A and B to aggregate all their messages within that timeout period, e.g. within that 1 second of inactivity. And hence the sleep should be < 1 sec.

> AggregateGroupedExchangeMultipleCorrelationTest fails
> -----------------------------------------------------
>
>                 Key: CAMEL-2517
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.2.0
>         Environment: Windows Vista
>            Reporter: Christian Schneider
>             Fix For: 2.3.0
>
>         Attachments: camel-core-2010-01-02.patch
>
>
> On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
> When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.

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


[jira] Commented: (CAMEL-2517) AggregateGroupedExchangeMultipleCorrelationTest fails

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

Claus Ibsen commented on CAMEL-2517:
------------------------------------

This is much better.

I can see the timeout map is evicting the 2 messages as expected but in your case they are send in reverse order.
Which means its backing ConcurrentHasMap is operating differently on Windows than eg. Mac.

I digged into the timeout map and have enhanced it to resort the evicted entries, which means it should send out the messages in correct order, eg the first expired first, and the last last.

So when I have run the test to completion you can try again with latest code from trunk.


> AggregateGroupedExchangeMultipleCorrelationTest fails
> -----------------------------------------------------
>
>                 Key: CAMEL-2517
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2517
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.2.0
>         Environment: Windows Vista
>            Reporter: Christian Schneider
>             Fix For: 2.3.0
>
>         Attachments: camel-core-2010-01-02.patch, camel-core-2010-03-03.patch, failure_100ms.txt, success_1000ms.txt
>
>
> On my system the test AggregateGroupedExchangeMultipleCorrelationTest fails. It seems the Thread.sleep(100) is too short.
> When I increase to at least 900ms it works. To add some safety I propose to increase to 1000ms.

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