Skip to content

Support null value messages #489

Closed

Description

@BewareMyPower

Currently the producer cannot send a null value message, which is used as a tombstone for a specific key on a compacted topic.

In addition, the consumer cannot differ empty values from null values, because all these values are presented as empty std::strings.

To solve this issue, we might need to add the following method to MessageBuilder:

MessageBuilder& setNullValue();

The method above should set the following field in MessageMetadata:

message MessageMetadata {
    // ...
    // Indicate if the message payload value is set
    optional bool null_value = 25 [default = false]

Then we can add a method to Message to indicate if the message has null value

bool isNullValue() const;

Activity

  1. Bhargavkonidena commented on May 21, 2025

    @Bhargavkonidena
    Contributor

    @BewareMyPower can you assign this issue to me?

  2. BewareMyPower commented on May 22, 2025

    @BewareMyPower
    ContributorAuthor

    OK

  3. zhanglistar commented on Mar 30, 2026

    @zhanglistar
    Contributor

    @Bhargavkonidena what's the progress? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

good first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions