[
https://issues.apache.org/jira/browse/CAMEL-13943?focusedWorklogId=307797&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-307797
]
ASF GitHub Bot logged work on CAMEL-13943:
------------------------------------------
Author: ASF GitHub Bot
Created on: 06/Sep/19 12:27
Start Date: 06/Sep/19 12:27
Worklog Time Spent: 10m
Work Description: omarsmak commented on pull request #3154: CAMEL-13943:
Fix failing unit tests in camel-kafka
URL: https://github.com/apache/camel/pull/3154
This intends to go around with the race condition issue that _sometimes_
occurs with `MemoryStateRepository` in
`KafkaConsumerOffsetRepositoryResumeTest` and
`KafkaConsumerOffsetRepositoryEmptyTest` which as result cause the tests to
fail (not always)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 307797)
Remaining Estimate: 0h
Time Spent: 10m
> Camel-kafka Test cases getting failed
> ---------------------------------------
>
> Key: CAMEL-13943
> URL: https://issues.apache.org/jira/browse/CAMEL-13943
> Project: Camel
> Issue Type: Test
> Components: camel-kafka
> Affects Versions: 3.0.0.RC1
> Reporter: Ramu
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {code:java}
> ERROR] Failures:
> [ERROR]
> org.apache.camel.component.kafka.KafkaConsumerOffsetRepositoryResumeTest.shouldResumeFromAnyParticularOffset(org.apache.camel.component.kafka.KafkaConsumerOffsetRepositoryResumeTest)
> [ERROR] Run 1:
> KafkaConsumerOffsetRepositoryResumeTest.shouldResumeFromAnyParticularOffset:77->Assert.assertEquals:115
> partition-0 expected:<[4]> but was:<[2]>
> [ERROR] Run 2:
> KafkaConsumerOffsetRepositoryResumeTest.shouldResumeFromAnyParticularOffset:77->Assert.assertEquals:115
> partition-0 expected:<[4]> but was:<[2]>
> [ERROR] Run 3:
> KafkaConsumerOffsetRepositoryResumeTest.shouldResumeFromAnyParticularOffset:77->Assert.assertEquals:115
> partition-0 expected:<[4]> but was:<[2]>
> [INFO]
> [WARNING] Flakes:
> [WARNING]
> org.apache.camel.component.kafka.KafkaConsumerOffsetRepositoryEmptyTest.shouldStartFromBeginningWithEmptyOffsetRepository(org.apache.camel.component.kafka.KafkaConsumerOffsetRepositoryEmptyTest)
> [ERROR] Run 1:
> KafkaConsumerOffsetRepositoryEmptyTest.shouldStartFromBeginningWithEmptyOffsetRepository:78->Assert.assertEquals:118->Assert.failNotEquals:834->Assert.fail:88
> partition-1 expected:<4> but was:<null>
> [ERROR] Run 2:
> KafkaConsumerOffsetRepositoryEmptyTest.shouldStartFromBeginningWithEmptyOffsetRepository:77->Assert.assertEquals:118->Assert.failNotEquals:834->Assert.fail:88
> partition-0 expected:<4> but was:<null>
> [INFO] Run 3: PASS
> [INFO]
> [INFO]
> [ERROR] Tests run: 61, Failures: 1, Errors: 0, Skipped: 3, Flakes: 1
> [INFO]
> {code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)