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

Update parse_describe_topic to support new topic describe output

    XMLWordPrintableJSON

Details

    Description

      It appears that recent changes to the describe topic output has broken the system test's ability to parse the output.

      test_id:    kafkatest.tests.core.reassign_partitions_test.ReassignPartitionsTest.test_reassign_partitions.bounce_brokers=False.reassign_from_offset_zero=True.metadata_quorum=ISOLATED_KRAFT.use_new_coordinator=True.group_protocol=consumer
      status:     FAIL
      run time:   50.333 seconds
      
      
          IndexError('list index out of range')
      Traceback (most recent call last):
        File "/home/jenkins/workspace/system-test-kafka-branch-builder/kafka/venv/lib/python3.7/site-packages/ducktape/tests/runner_client.py", line 184, in _do_run
          data = self.run_test()
        File "/home/jenkins/workspace/system-test-kafka-branch-builder/kafka/venv/lib/python3.7/site-packages/ducktape/tests/runner_client.py", line 262, in run_test
          return self.test_context.function(self.test)
        File "/home/jenkins/workspace/system-test-kafka-branch-builder/kafka/venv/lib/python3.7/site-packages/ducktape/mark/_mark.py", line 433, in wrapper
          return functools.partial(f, *args, **kwargs)(*w_args, **w_kwargs)
        File "/home/jenkins/workspace/system-test-kafka-branch-builder/kafka/tests/kafkatest/tests/core/reassign_partitions_test.py", line 175, in test_reassign_partitions
          self.run_produce_consume_validate(core_test_action=lambda: self.reassign_partitions(bounce_brokers))
        File "/home/jenkins/workspace/system-test-kafka-branch-builder/kafka/tests/kafkatest/tests/produce_consume_validate.py", line 105, in run_produce_consume_validate
          core_test_action(*args)
        File "/home/jenkins/workspace/system-test-kafka-branch-builder/kafka/tests/kafkatest/tests/core/reassign_partitions_test.py", line 175, in <lambda>
          self.run_produce_consume_validate(core_test_action=lambda: self.reassign_partitions(bounce_brokers))
        File "/home/jenkins/workspace/system-test-kafka-branch-builder/kafka/tests/kafkatest/tests/core/reassign_partitions_test.py", line 82, in reassign_partitions
          partition_info = self.kafka.parse_describe_topic(self.kafka.describe_topic(self.topic))
        File "/home/jenkins/workspace/system-test-kafka-branch-builder/kafka/tests/kafkatest/services/kafka/kafka.py", line 1400, in parse_describe_topic
          fields = list(map(lambda x: x.split(" ")[1], fields))
        File "/home/jenkins/workspace/system-test-kafka-branch-builder/kafka/tests/kafkatest/services/kafka/kafka.py", line 1400, in <lambda>
          fields = list(map(lambda x: x.split(" ")[1], fields))
      IndexError: list index out of range
      

      Attachments

        Issue Links

          Activity

            People

              kirktrue Kirk True
              kirktrue Kirk True
              Lucas Brutschy Lucas Brutschy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: