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

KafkaDockerWrapper uses wrong cluster ID when formatting log dir

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.7.0
    • 3.8.0, 3.7.1
    • None
    • None

    Description

      There is a bug in KafkaDockerWrapper, that causes Some(<value of CLUSTER_ID environment variable>) to be used when formatting the log dir when Kafka is started for the first time inside a Docker container.

      More specifically, the problem is in formatStorageCmd: The code uses env.get("CLUSTER_ID"), but this returns an Option not a String.

      The code should instead check whether the environment variable is set, raising an exception if it is not set.

      Attachments

        Issue Links

          Activity

            People

              smarsching Sebastian Marsching
              smarsching Sebastian Marsching
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: