As we know from the comment of DefaultPartitioner, kafka producers select partitions in the following rules while RoundRobinPartitioner is selected in a round-robin way. But it is just regarding to multiple messages delivery, if producer retries is enabled, will the subsequent retry delivery sent according to below rules or keep retrying on the same partition?
/** * The default partitioning strategy: * * If a partition is specified in the record, use it * If no partition is specified but a key is present choose a partition based on a hash of the key * If no partition or key is present choose a partition in a round-robin fashion */
Thanks~
Partitioning and delivery(retry) are isolated.