blankensteiner commented on issue #61: URL: https://github.com/apache/pulsar-dotpulsar/issues/61#issuecomment-706945000
Thanks for the detailed bug report! :-) The logic in DotPulsar says "If there is only one message in the batch, then it's not a batch but just a message and deserialize it accordingly. If we can't trust the "NumMessagesInBatch" field to tell us if it's a batched message or not, then how do we know? From https://pulsar.apache.org/docs/en/develop-binary-protocol/ on the "num_messages_in_batch" field: > If this message is really a batch of multiple entries, this field must be set to the number of messages in the batch I interpret that to mean "If there is only one message, then it should not be sent as a batch". Looking at https://github.com/apache/pulsar/blob/master/pulsar-common/src/main/proto/PulsarApi.proto it says this about the field: > differentiate single and batch message metadata So, I need some input on how to know if the message is batched or not. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
