codelipenghui commented on issue #9699: URL: https://github.com/apache/pulsar/issues/9699#issuecomment-789415865
@ilpanich The producer enabled the default batch policy based on the time(1ms for a batch), so this will lead to the messages with different keys add to one batch and send to the broker. So after the batch dispatched to the consumer, the consumer might receive the different keys of the batch. There are 2 options to get it to work 1. Disable the message batching on the producer side 2. Use the KEY_BASE batching on the producer side, since the batch message of the KEY_BASED batcher only contains the messages with the same key. ---------------------------------------------------------------- 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]
