mirror of https://github.com/apache/kafka.git
re-set to old default partitioner
This commit is contained in:
parent
1ceaf30039
commit
6c67adb8be
|
@ -18,6 +18,7 @@ package org.apache.kafka.clients.producer;
|
|||
|
||||
import org.apache.kafka.clients.ClientDnsLookup;
|
||||
import org.apache.kafka.clients.CommonClientConfigs;
|
||||
import org.apache.kafka.clients.producer.internals.DefaultPartitioner;
|
||||
import org.apache.kafka.common.config.AbstractConfig;
|
||||
import org.apache.kafka.common.config.ConfigDef;
|
||||
import org.apache.kafka.common.config.ConfigDef.Importance;
|
||||
|
@ -438,7 +439,7 @@ public class ProducerConfig extends AbstractConfig {
|
|||
CommonClientConfigs.CONNECTIONS_MAX_IDLE_MS_DOC)
|
||||
.define(PARTITIONER_CLASS_CONFIG,
|
||||
Type.CLASS,
|
||||
null,
|
||||
DefaultPartitioner.class,
|
||||
Importance.MEDIUM, PARTITIONER_CLASS_DOC)
|
||||
.define(INTERCEPTOR_CLASSES_CONFIG,
|
||||
Type.LIST,
|
||||
|
|
|
@ -33,7 +33,6 @@ import java.util.Map;
|
|||
*
|
||||
* See KIP-480 for details about sticky partitioning.
|
||||
*/
|
||||
@Deprecated
|
||||
public class DefaultPartitioner implements Partitioner {
|
||||
|
||||
private final StickyPartitionCache stickyPartitionCache = new StickyPartitionCache();
|
||||
|
|
Loading…
Reference in New Issue