mirror of https://github.com/apache/kafka.git
MINOR: update doc for default assignor change (#11009)
Update the doc and upgrade doc for default assignor change. REF: #10903 Reviewers: Anna Sophie Blee-Goldman <ableegoldman@apache.org>
This commit is contained in:
parent
1f64df921c
commit
ac18bdc183
|
@ -114,15 +114,17 @@ public class ConsumerConfig extends AbstractConfig {
|
|||
"ordered by preference, of supported partition assignment strategies that the client will use to distribute " +
|
||||
"partition ownership amongst consumer instances when group management is used. Available options are:" +
|
||||
"<ul>" +
|
||||
"<li><code>org.apache.kafka.clients.consumer.RangeAssignor</code>: The default assignor, which works on a per-topic basis.</li>" +
|
||||
"<li><code>org.apache.kafka.clients.consumer.RangeAssignor</code>: Assigns partitions on a per-topic basis.</li>" +
|
||||
"<li><code>org.apache.kafka.clients.consumer.RoundRobinAssignor</code>: Assigns partitions to consumers in a round-robin fashion.</li>" +
|
||||
"<li><code>org.apache.kafka.clients.consumer.StickyAssignor</code>: Guarantees an assignment that is " +
|
||||
"maximally balanced while preserving as many existing partition assignments as possible.</li>" +
|
||||
"<li><code>org.apache.kafka.clients.consumer.CooperativeStickyAssignor</code>: Follows the same StickyAssignor " +
|
||||
"logic, but allows for cooperative rebalancing.</li>" +
|
||||
"</ul>" +
|
||||
"<p>The default assignor is [RangeAssignor, CooperativeStickyAssignor], which will use the RangeAssignor by default, " +
|
||||
"but allows upgrading to the CooperativeStickyAssignor with just a single rolling bounce that removes the RangeAssignor from the list.</p>" +
|
||||
"<p>Implementing the <code>org.apache.kafka.clients.consumer.ConsumerPartitionAssignor</code> " +
|
||||
"interface allows you to plug in a custom assignment strategy.";
|
||||
"interface allows you to plug in a custom assignment strategy.</p>";
|
||||
|
||||
/**
|
||||
* <code>auto.offset.reset</code>
|
||||
|
|
|
@ -62,6 +62,9 @@
|
|||
were removed. These methods were not intended to be public API and there is no replacement.</li>
|
||||
<li>The <code>NoOffsetForPartitionException.partition()</code> method was removed. Please use <code>partitions()</code>
|
||||
instead.</li>
|
||||
<li>The default <code>partition.assignment.strategy</code> is changed to "[RangeAssignor, CooperativeStickyAssignor]",
|
||||
which will use the RangeAssignor by default, but allows upgrading to the CooperativeStickyAssignor with just a single rolling bounce that removes the RangeAssignor from the list.
|
||||
Please check the client upgrade path guide <a href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-429:+Kafka+Consumer+Incremental+Rebalance+Protocol#KIP429:KafkaConsumerIncrementalRebalanceProtocol-Consumer">here</a> for more detail.</li>
|
||||
<li>The Scala <code>kafka.common.MessageFormatter</code> was removed. Please use the Java <code>org.apache.kafka.common.MessageFormatter</code>.</li>
|
||||
<li>The <code>MessageFormatter.init(Properties)</code> method was removed. Please use <code>configure(Map)</code> instead.</li>
|
||||
<li>The <code>checksum()</code> method has been removed from <code>ConsumerRecord</code> and <code>RecordMetadata</code>. The message
|
||||
|
|
Loading…
Reference in New Issue