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

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

GitHub user apurvam opened a pull request:

    https://github.com/apache/kafka/pull/3346

    MINOR: Cleanups for TransactionsTest

    The motivation is that KAFKA-5449 seems to indicate that producer instances 
can be shared across tests, and that producers from one test seem to be hitting 
brokers in another test.
    
    So this patch does two things: 
    # Make transactionsTest use random ports in each test case. 
    # Clear producers and consumers between tests.
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apurvam/kafka 
MINOR-transactiontest-should-inherit-from-integration-test-harness

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/3346.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3346
    
----
commit 2cc3aa4c77d80bd1c806f7ee276cb18ffbeaa540
Author: Apurva Mehta <apu...@confluent.io>
Date:   2017-06-15T00:35:52Z

    Make transactionsTest use random ports in each test case. Clear producers 
and consumers between tests

----


> Flaky test TransactionsTest.testReadCommittedConsumerShouldNotSeeUndecidedData
> ------------------------------------------------------------------------------
>
>                 Key: KAFKA-5449
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5449
>             Project: Kafka
>          Issue Type: Bug
>          Components: core, unit tests
>            Reporter: Matthias J. Sax
>            Assignee: Apurva Mehta
>              Labels: exactly-once, test
>
> {noformat}
> java.lang.AssertionError: Consumed 6 records until timeout instead of the 
> expected 8 records
>       at kafka.utils.TestUtils$.fail(TestUtils.scala:333)
>       at kafka.utils.TestUtils$.waitUntilTrue(TestUtils.scala:847)
>       at kafka.utils.TestUtils$.consumeRecords(TestUtils.scala:1357)
>       at 
> kafka.api.TransactionsTest.testReadCommittedConsumerShouldNotSeeUndecidedData(TransactionsTest.scala:143)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to