You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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();
}
The text was updated successfully, but these errors were encountered:
Hi Ricardo, I see you are still calling this function, do we still need this workaround with the latest kakfa-client version?
The text was updated successfully, but these errors were encountered: