GitHub user edenhill opened a pull request: https://github.com/apache/kafka/pull/2765
MINOR: Fix race condition in TestVerifiableProducer sanity test The test starts a producer, waits for at least 5 acks, and then logs in to the worker to grep for the producer process to figure out what version it is running. The problem was that the producer was set up to produce 1000 messages at a rate of 1000 msgs/s and then exit. This means it will have a typical runtime slightly above 1 second. Logging in to the vagrant instance might take longer than that thus resulting in the process grep to fail, failing the test. This commit doesn't really fix the issue - a proper fix would be to tell the producer to stick around until explicitly killed - but it increases the chances of the test passing, at the expense of a slightly longer runtime. You can merge this pull request into a Git repository by running: $ git pull https://github.com/edenhill/kafka trunk Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/2765.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 #2765 ---- ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---