confluentinc / cp-all-in-one

docker-compose.yml files for cp-all-in-one , cp-all-in-one-community, cp-all-in-one-cloud, Apache Kafka Confluent Platform
958 stars 684 forks source link

use --cluster-id flag to accommodate 'kafka-storage random-uuid' output that's dash-prefixed #108

Closed laser closed 1 year ago

laser commented 2 years ago

Problem

Occasionally, the kafka-storage random-uuid command outputs a - prefixed string, which causes the kafka-storage format command to fail. An example of this (which we recently saw in CI) was the string -f_5rGTAQYmTztSSUAVNuQ.

Solution

The --cluster-id flag doesn't have the same limitations w/respect to dash-prefixed cluster ids as -t does, so use that.