grafana/mimir

Bug: some kafkatool commands require `kafka-address` unnecessarily

Open

#15,917 opened on Jul 1, 2026

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Go (808 forks)auto 404
buggood first issue

Repository metrics

Stars
 (5,181 stars)
PR merge metrics
 (PR metrics pending)

Description

What is the bug?

Some kafkatool commands require the user to pass the --kafka-address, but do not contact a remote server at all. This is inconvenient and confusing.

I don't have an exhaustive list of commands. I believe the flag is required for all commands, so we should just look for all commands that don't use it. Here are some:

dump analyse
dump print
dump find-duplicates

How to reproduce it?

$ ./kafkatool dump --file ./dump.json analyse
kafkatool: error: required flag(s) '--kafka-address' not provided, try --help

What did you think would happen?

We should not require the --kafka-address flag when it's not required.

What was your environment?

n/a

Any additional context to share?

No response

Contributor guide