[ https://issues.apache.org/jira/browse/KAFKA-3080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15097796#comment-15097796 ]
ASF GitHub Bot commented on KAFKA-3080: --------------------------------------- GitHub user ewencp opened a pull request: https://github.com/apache/kafka/pull/770 KAFKA-3080: Fix ConsoleConsumerTest by checking version when service is started The MessageFormatter being used was only introduced as of 0.9.0.0. The Kafka version in some tests is changed dynamically, sometimes from trunk back to an earlier version, so this option must be set based on the version used when the service is started, not when it is created. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ewencp/kafka kafka-3080-system-test-console-consumer-version-failure Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/770.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 #770 ---- commit 0f0d33fe251f7dd94bd580c7e368f763ea680aea Author: Ewen Cheslack-Postava <m...@ewencp.org> Date: 2016-01-14T07:54:55Z KAFKA-3080: Fix ConsoleConsumerTest by checking version when service is started The MessageFormatter being used was only introduced as of 0.9.0.0. The Kafka version in some tests is changed dynamically, sometimes from trunk back to an earlier version, so this option must be set based on the version used when the service is started, not when it is created. ---- > ConsoleConsumerTest.test_version system test fails consistently > --------------------------------------------------------------- > > Key: KAFKA-3080 > URL: https://issues.apache.org/jira/browse/KAFKA-3080 > Project: Kafka > Issue Type: Bug > Components: system tests > Reporter: Ewen Cheslack-Postava > > This test on trunk is failing consistently: > {quote} > test_id: > 2016-01-07--001.kafkatest.sanity_checks.test_console_consumer.ConsoleConsumerTest.test_version > status: FAIL > run time: 38.451 seconds > num_produced: 1000, num_consumed: 0 > Traceback (most recent call last): > File > "/var/lib/jenkins/workspace/kafka_system_tests/kafka/venv/local/lib/python2.7/site-packages/ducktape-0.3.8-py2.7.egg/ducktape/tests/runner.py", > line 101, in run_all_tests > result.data = self.run_single_test() > File > "/var/lib/jenkins/workspace/kafka_system_tests/kafka/venv/local/lib/python2.7/site-packages/ducktape-0.3.8-py2.7.egg/ducktape/tests/runner.py", > line 151, in run_single_test > return self.current_test_context.function(self.current_test) > File > "/var/lib/jenkins/workspace/kafka_system_tests/kafka/tests/kafkatest/sanity_checks/test_console_consumer.py", > line 93, in test_version > assert num_produced == num_consumed, "num_produced: %d, num_consumed: %d" > % (num_produced, num_consumed) > AssertionError: num_produced: 1000, num_consumed: 0 > {quote} > Example run where it fails: > http://jenkins.confluent.io/job/kafka_system_tests/79/console -- This message was sent by Atlassian JIRA (v6.3.4#6332)