generated from amazon-archives/__template_MIT-0
- Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hi Ricardo, I see you are still calling this function, do we still need this workaround with the latest kakfa-client version?
public void onNewBatch(String topic, Cluster cluster, int prevPartition) { // With the introduction of KIP-480 to enhance record production // throughput Kafka's API calls the partition() method twice resulting // in partitions being skipped. More information about this here: // https://issues.apache.org/jira/browse/KAFKA-9965 // The temporary solution is to use the callback method 'onNewBatch' // to decrease the counter to stabilize the round-robin logic. String bucketName = lastBucket.get(); Bucket bucket = buckets.get(bucketName); if (bucket != null) { bucket.decrementCounter(); } lastBucket.remove(); } Metadata
Metadata
Assignees
Labels
No labels