commit | 1c40b74d795a6f10ba73cbfbae61c6042c99a25d | [log] [tgz] |
---|---|---|
author | Neng Lu <nlu@streamnative.io> | Mon May 18 23:11:42 2020 -0700 |
committer | GitHub <noreply@github.com> | Tue May 19 14:11:42 2020 +0800 |
tree | 0fb745664dbc08b81f911009a48f97c047108743 | |
parent | 3234e14128001cc853d7fdfe4db787cf14f994b9 [diff] |
[Issue 4803][client] return null if the message value/data is not set by producer (#6379) Fixes #4803 ### Motivation Allow the typed consumer receive messages with `null` value if the producer sends message without payload. ### Modifications - add a flag in `MessageMetadata` to indicate if the payload is set when the message is created - check and return `null` if the flag is not set when reading data from a message