You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jason Gustafson (JIRA)" <ji...@apache.org> on 2016/08/12 20:52:20 UTC

[jira] [Created] (KAFKA-4036) Unsafe dictionary access in VerifiableConsumer service

Jason Gustafson created KAFKA-4036:
--------------------------------------

             Summary: Unsafe dictionary access in VerifiableConsumer service
                 Key: KAFKA-4036
                 URL: https://issues.apache.org/jira/browse/KAFKA-4036
             Project: Kafka
          Issue Type: Bug
          Components: system tests
            Reporter: Jason Gustafson


Found this in a recent run. Looks like not all changes to the dictionary are guarded with the lock.

{code}
test_id:    2016-08-12--001.kafkatest.tests.client.consumer_test.OffsetValidationTest.test_consumer_failure.clean_shutdown=True.enable_autocommit=False
status:     FAIL
run time:   1 minute 32.957 seconds


    dictionary changed size during iteration
Traceback (most recent call last):
  File "/var/lib/jenkins/workspace/system-test-kafka-branch-builder/kafka/venv/local/lib/python2.7/site-packages/ducktape/tests/runner.py", line 106, in run_all_tests
    data = self.run_single_test()
  File "/var/lib/jenkins/workspace/system-test-kafka-branch-builder/kafka/venv/local/lib/python2.7/site-packages/ducktape/tests/runner.py", line 162, in run_single_test
    return self.current_test_context.function(self.current_test)
  File "/var/lib/jenkins/workspace/system-test-kafka-branch-builder/kafka/venv/local/lib/python2.7/site-packages/ducktape/mark/_mark.py", line 331, in wrapper
    return functools.partial(f, *args, **kwargs)(*w_args, **w_kwargs)
  File "/var/lib/jenkins/workspace/system-test-kafka-branch-builder/kafka/tests/kafkatest/tests/client/consumer_test.py", line 163, in test_consumer_failure
    self.await_all_members(consumer)
  File "/var/lib/jenkins/workspace/system-test-kafka-branch-builder/kafka/tests/kafkatest/tests/verifiable_consumer_test.py", line 83, in await_all_members
    self.await_members(consumer, self.num_consumers)
  File "/var/lib/jenkins/workspace/system-test-kafka-branch-builder/kafka/tests/kafkatest/tests/verifiable_consumer_test.py", line 80, in await_members
    err_msg="Consumers failed to join in a reasonable amount of time")
  File "/var/lib/jenkins/workspace/system-test-kafka-branch-builder/kafka/venv/local/lib/python2.7/site-packages/ducktape/utils/util.py", line 31, in wait_until
    if condition():
  File "/var/lib/jenkins/workspace/system-test-kafka-branch-builder/kafka/tests/kafkatest/tests/verifiable_consumer_test.py", line 78, in <lambda>
    wait_until(lambda: len(consumer.joined_nodes()) == num_consumers,
  File "/var/lib/jenkins/workspace/system-test-kafka-branch-builder/kafka/tests/kafkatest/services/verifiable_consumer.py", line 317, in joined_nodes
    return [handler.node for handler in self.event_handlers.itervalues()
RuntimeError: dictionary changed size during iteration
{code}





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)