wolfstudy opened a new pull request #706:
URL: https://github.com/apache/pulsar-client-go/pull/706


   Signed-off-by: xiaolongran <xiaolong...@tencent.com>
   
   ### Motivation
   
   When producer send message or consumer receive message in non-batch, return 
the batchIdx is `0`
   
   ```
   msgId: 
pulsar.trackingMessageID{messageID:pulsar.messageID{ledgerID:11653378, 
entryID:3807, batchIdx:0, partitionIdx:2}
   ```
   
   In fact, when we disable batch in ProducerOptions, the batchIdx is `-1`
   
   ```
   msgId: 
pulsar.trackingMessageID{messageID:pulsar.messageID{ledgerID:11653378, 
entryID:3807, batchIdx:0, partitionIdx:2}
   ```
   
   ### Modifications
   
   - Get batchIdx from broker
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to