You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments