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

ASF GitHub Bot commented on KAFKA-8391:
---------------------------------------

rhauch commented on pull request #7224: KAFKA-8391, KAFKA-8661: Improve flaky 
Connect rebalance integration tests
URL: https://github.com/apache/kafka/pull/7224
 
 
   Increased the timeout by a substantial amount, though this will only take 
effect if the test conditions are not met successfully.
   
   Added logic to allow tests to wait for a number of records to have been 
written to / consumed from a specific topic. This involved extracting the 
previously-duplicated logic in `ConnectorHandle` and TaskHandle (test framework 
classes) into a new `RecordLatches` class that can be easily reused by both 
those handle classes.
   
   These integration tests are passing were occasionally failing for me 
locally, but now I’ve run them successfully nearly a dozen times in a row. If 
the Jenkins builds are a bit slower, this might help the tests fail less 
frequently.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   
 
----------------------------------------------------------------
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:
us...@infra.apache.org


> Flaky Test RebalanceSourceConnectorsIntegrationTest#testDeleteConnector
> -----------------------------------------------------------------------
>
>                 Key: KAFKA-8391
>                 URL: https://issues.apache.org/jira/browse/KAFKA-8391
>             Project: Kafka
>          Issue Type: Bug
>          Components: KafkaConnect
>    Affects Versions: 2.3.0
>            Reporter: Matthias J. Sax
>            Assignee: Randall Hauch
>            Priority: Critical
>              Labels: flaky-test
>             Fix For: 2.1.2, 2.2.2, 2.4.0, 2.3.1
>
>
> [https://builds.apache.org/job/kafka-pr-jdk11-scala2.12/4747/testReport/junit/org.apache.kafka.connect.integration/RebalanceSourceConnectorsIntegrationTest/testDeleteConnector/]
> {quote}java.lang.AssertionError: Condition not met within timeout 30000. 
> Connector tasks did not stop in time. at 
> org.apache.kafka.test.TestUtils.waitForCondition(TestUtils.java:375) at 
> org.apache.kafka.test.TestUtils.waitForCondition(TestUtils.java:352) at 
> org.apache.kafka.connect.integration.RebalanceSourceConnectorsIntegrationTest.testDeleteConnector(RebalanceSourceConnectorsIntegrationTest.java:166){quote}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to