blankensteiner commented on issue #68:
URL: https://github.com/apache/pulsar-dotpulsar/issues/68#issuecomment-777440578


   Thanks!
   I see the problem.
   Some time ago I checked if a message was batched or not by checking the 
NumOfMessagesInBatch field, which has a default value of '1'.
   If it was '1' (no matter if it's the default value or explicitly set), then 
I assumed the message was not batched. However, this caused problems because 
Python, with batching enabled, would send a single message as a batched 
message. So, I changed the logic to check if the NumOfMessagesInBatch field was 
set or not (ignoring what it's set to), and if it was set then it's a batched 
message.
   Now it seems that a message with NumOfMessagesInBatch set to '1' is 
generated from Python, but it's not a batched message.
   Reverting this back to the original logic would fix the problem, but then I 
think we would break something else.
   @sijie got any valuable insights here?


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to