Aurélien Pupier created CAMEL-27512:
---------------------------------------

             Summary: Fix flaky MongoDbConsumerStopTest
                 Key: CAMEL-27512
                 URL: https://issues.apache.org/jira/browse/CAMEL-27512
             Project: Camel
          Issue Type: Test
          Components: camel-mongodb
    Affects Versions: 4.24.0
            Reporter: Aurélien Pupier


test was added mid-november and was already flaky 32 times (8% of the time)

{noformat}
org.opentest4j.AssertionFailedError: the consumer thread left behind is 
interrupted ==> expected: <true> but was: <false>       
        at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:232)     
        at 
org.apache.camel.component.mongodb.MongoDbConsumerStopTest.assertStopDoesNotWaitForTheBlockedThread(MongoDbConsumerStopTest.java:250)
        
        at 
org.apache.camel.component.mongodb.MongoDbConsumerStopTest.tailableConsumerStopsWhileItsThreadIsBlockedReadingTheCursor(MongoDbConsumerStopTest.java:123)
    
{noformat}

{noformat}
org.opentest4j.AssertionFailedError: the consumer thread left behind is 
interrupted ==> expected: <true> but was: <false>       
        at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:232)     
        at 
org.apache.camel.component.mongodb.MongoDbConsumerStopTest.assertStopDoesNotWaitForTheBlockedThread(MongoDbConsumerStopTest.java:250)
        
        at 
org.apache.camel.component.mongodb.MongoDbConsumerStopTest.tailableConsumerStopsWhileItsThreadIsBlockedReadingTheCursor(MongoDbConsumerStopTest.java:123)
    
{noformat}

{noformat}
org.opentest4j.AssertionFailedError: the consumer thread left behind is 
interrupted ==> expected: <true> but was: <false>       
        at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:232)     
        at 
org.apache.camel.component.mongodb.MongoDbConsumerStopTest.assertStopDoesNotWaitForTheBlockedThread(MongoDbConsumerStopTest.java:250)
        
        at 
org.apache.camel.component.mongodb.MongoDbConsumerStopTest.changeStreamsConsumerStopsWhileItsThreadIsBlockedReadingTheCursor(MongoDbConsumerStopTest.java:138)
       
{noformat}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to