Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Status

Current state: Under DiscussionAccepted

Discussion thread: here [Change the link from the KIP proposal email archive to your own email thread]

JIRA: here [Change the link from KAFKA-1 to your own ticket]13595

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

...

  1. This will result in a record with key=null, value="myvalue" and headers={"h0": "v0", "h1": "v1"}
  2. This will result in a record with key="mykey", value=null and headers=null
  3. This will result in a record with key=null, value=null and headers={"h0": "", "h1": "v1"}
  4. This will result in a record with key="mykey", value=null and headers={"h0": null, "h1": "v1"}
  5. This will result in a record with key="mykey", value="myvalue" and headers={"NULL": "v0"} This is return an error because headers cannot have a null key.

In case the specified null.marker value collides with any of the other flags, an error message will be returned to the user.

Proposed Changes

This will require small changes in ConsoleProducer/LineMessageReader to accept the new flag and update the generated ProducerRecord accordingly.

...