Skip to content

accidentially writing "null" instead of null-value to topic #308

@warmuuh

Description

@warmuuh

This is not necessarily an issue but there could be a safeguard to not accidentially write a null-value or null-key like this:

kafkactl produce my-topic -k "x" -v null

this results in the string "null" to be written to the topic instead of the intended null-value.

It happened now multiple times by different people in my company and always resulted in major problems as there is now a "poison pill" in the topic.

so i thought, it maybe makes sense to add a safeguard for this specific string, such as:

> kafkactl produce my-topic -k "x" -v null
> kafkactl produce my-topic -k null -v "x"
Do you really intend to write the string "null" (tombstones are written using --null-value / --null-key) [y/N]?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions