Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10505

[SystemTests] streams_static_membership.py and streams_upgradet_test.py fails

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: streams, system tests
    • Labels:
      None

      Description

      Two system tests fails with the same reason:

      streams_static_membership_test.py:

      [INFO:2020-09-21 00:33:45,803]: RunnerClient: Loading test {'directory': '/opt/kafka-dev/tests/kafkatest/tests/streams', 'file_name': 'streams_static_membership_test.py', 'cls_name': 'StreamsStaticMembershipTest', 'method_name': 'test_rolling_bounces_will_not_trigger_rebalance_under_static_membership', 'injected_args': None}
      [INFO:2020-09-21 00:33:45,818]: RunnerClient: kafkatest.tests.streams.streams_static_membership_test.StreamsStaticMembershipTest.test_rolling_bounces_will_not_trigger_rebalance_under_static_membership: Setting up...
      [INFO:2020-09-21 00:33:45,819]: RunnerClient: kafkatest.tests.streams.streams_static_membership_test.StreamsStaticMembershipTest.test_rolling_bounces_will_not_trigger_rebalance_under_static_membership: Running...
      [INFO:2020-09-21 00:35:24,906]: RunnerClient: kafkatest.tests.streams.streams_static_membership_test.StreamsStaticMembershipTest.test_rolling_bounces_will_not_trigger_rebalance_under_static_membership: FAIL: invalid literal for int() with base 10: "Generation{generationId=5,memberId='consumer-A-3-a9a925b2-2875-4756-8649-49f516b6cae1',protocol='stream'}\n"
      Traceback (most recent call last):
        File "/usr/local/lib/python3.7/dist-packages/ducktape/tests/runner_client.py", line 134, in run
          data = self.run_test()
        File "/usr/local/lib/python3.7/dist-packages/ducktape/tests/runner_client.py", line 192, in run_test
          return self.test_context.function(self.test)
        File "/opt/kafka-dev/tests/kafkatest/tests/streams/streams_static_membership_test.py", line 88, in test_rolling_bounces_will_not_trigger_rebalance_under_static_membership
          generation = int(generation)
      ValueError: invalid literal for int() with base 10: "Generation{generationId=5,memberId='consumer-A-3-a9a925b2-2875-4756-8649-49f516b6cae1',protocol='stream'}\n"
      

      streams_upgrade_test.py::StreamsUpgradeTest.test_version_probing_upgrade

      test_id:    kafkatest.tests.streams.streams_upgrade_test.StreamsUpgradeTest.test_version_probing_upgrade
      status:     FAIL
      run time:   1 minute 3.362 seconds
      
      
          invalid literal for int() with base 10: "Generation{generationId=6,memberId='StreamsUpgradeTest-8a6ac110-1c65-40eb-af05-8bee270f1701-StreamThread-1-consumer-207de872-6588-407a-8485-101a19ba2bf0',protocol='stream'}\n"
      Traceback (most recent call last):
        File "/usr/local/lib/python3.7/dist-packages/ducktape/tests/runner_client.py", line 134, in run
          data = self.run_test()
        File "/usr/local/lib/python3.7/dist-packages/ducktape/tests/runner_client.py", line 192, in run_test
          return self.test_context.function(self.test)
        File "/opt/kafka-dev/tests/kafkatest/tests/streams/streams_upgrade_test.py", line 273, in test_version_probing_upgrade
          current_generation = self.do_rolling_bounce(p, counter, current_generation)
        File "/opt/kafka-dev/tests/kafkatest/tests/streams/streams_upgrade_test.py", line 511, in do_rolling_bounce
          processor_generation = self.extract_highest_generation(processor_found)
        File "/opt/kafka-dev/tests/kafkatest/tests/streams/streams_upgrade_test.py", line 533, in extract_highest_generation
          return int(found_generations[-1])
      ValueError: invalid literal for int() with base 10: "Generation{generationId=6,memberId='StreamsUpgradeTest-8a6ac110-1c65-40eb-af05-8bee270f1701-StreamThread-1-consumer-207de872-6588-407a-8485-101a19ba2bf0',protocol='stream'}\n"
      

      To fix it we need to extract generationId number from log string

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nizhikov Nikolay Izhikov
                Reporter:
                nizhikov Nikolay Izhikov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: