Skip to content

Null payload for Kafka log compaction deletion feature #408

@vshlapakov

Description

@vshlapakov

According to the official doc Kafka log compaction could be used to delete messages from the log:
Compaction also allows from deletes. A message with a key and a null payload will be treated as a delete from the log. This delete marker will cause any prior message with that key to be removed (as would any new message with that key), but delete markers are special in they will themselves be cleaned out of the log after a period of time.

But now there's a limitation in the code that doesn't allow to pass null payloads, so the deletion feature doesn't work at all. Was it done by purpose for some reasons or I can prepare a short PR to fix it?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions