shileiyu opened a new issue #749: URL: https://github.com/apache/pulsar-client-go/issues/749
Function internalFlushCurrentBatch, [ this line of code](https://github.com/apache/pulsar-client-go/blob/bb2fa811a0f5e61bc978b627b89d00a17f68b436/pulsar/producer_partition.go#L470), should not be invoked if the batch builder associated with the producer is a multi batches container. Potential Fix: Using internalFlushCurrentBatches instead, if the associated batch builder is a multi batches container. ``` if p.batchBuilder.IsMultiBatches() { p.internalFlushCurrentBatches() } else { p.internalFlushCurrentBatch() } ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
