-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NULL message payloads are used with compaction topics introduced in 0.8.1 which use the NULL payload to indicate the corresponding key should be deleted. The Kafka protocol guide also notes that the Value (payload) may be NULL. https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol#AGuideToTheKafkaProtocol-Messagesets This commit makes these changes: - prevents NULL payloads from being copied when RD_KAFKA_MSG_F_COPY is set. - prevents payload bytes being copied into rkbuf when NULL. - sets rkm_len to -1 when payload is NULL (just like key). - Allows NULL payloads to be received in a fetch.
- Loading branch information
1 parent
ff3fb1e
commit 248ca27
Showing
2 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters