Chia-Ping Tsai created KAFKA-21245:
--------------------------------------

             Summary: Support hex-encoded key/value in console consumer and 
producer
                 Key: KAFKA-21245
                 URL: https://issues.apache.org/jira/browse/KAFKA-21245
             Project: Kafka
          Issue Type: Improvement
            Reporter: Chia-Ping Tsai
            Assignee: Chia-Ping Tsai


I was testing compacted topics and noticed that there is no official tool to 
write a tombstone for a specific record. The console producer can produce null 
values (KIP-810), but there is no way to type a binary key, so records with 
serialized keys (long, Avro, Protobuf, etc.) cannot be deleted from the command 
line.

Of course, we can leverage AI to generate 1000 tools immediately, but “this 
tool” can be addressed by supporting hex 🙂

Also, hex is the baseline for all types of records. It is line-safe, so the 
output can be piped through grep, awk, and other console tools, and it can be 
fed back into the console producer to reproduce the exact same bytes.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to