-
Notifications
You must be signed in to change notification settings - Fork 14.6k
KAFKA-18262: Remove DefaultPartitioner and UniformStickyPartitioner #18204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, i left one minor.
streams/src/test/java/org/apache/kafka/streams/processor/internals/RecordCollectorTest.java
Outdated
Show resolved
Hide resolved
streams/src/test/java/org/apache/kafka/streams/processor/internals/RecordCollectorTest.java
Outdated
Show resolved
Hide resolved
00c0175
to
fe57284
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FrankYang0529 thanks for this patch. I'd like to push this to 4.0.0
docs/upgrade.html
Outdated
@@ -44,6 +44,8 @@ <h5><a id="upgrade_400_notable" href="#upgrade_400_notable">Notable changes in 4 | |||
<li>The <code>kafka.common.requests.DescribeLogDirsResponse.ReplicaInfo</code> class was removed. Please use the <code>kafka.clients.admin.DescribeLogDirsResult.descriptions()</code> class | |||
and <code>kafka.clients.admin.DescribeLogDirsResult.allDescriptions()</code>instead. | |||
</li> | |||
<li>The <code>org.apache.kafka.clients.producer.UniformStickyPartitioner</code> class was removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add DefaultPartitioner
as well
final boolean autoComplete, | ||
final Serializer<K> keySerializer, | ||
final Serializer<V> valueSerializer) { | ||
this(cluster, autoComplete, new org.apache.kafka.clients.producer.internals.DefaultPartitioner(), keySerializer, valueSerializer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MockProducer
has a null partitioner and it may cause NPE. Could you please fix that too? We can pick up a partition based on cluster.partitionsForTopic(topic);
if the partitioner is null
4eda25b
to
7b64d48
Compare
Signed-off-by: PoAn Yang <[email protected]>
7b64d48
to
2c81bc7
Compare
Hi @chia7712, could you help me review this PR when you have time? Thank you. |
…18204) Reviewers: Chia-Ping Tsai <[email protected]>
…e-old-protocol-versions * apache-github/trunk: KAFKA-18312: Added entityType: topicName to SubscribedTopicNames in ShareGroupHeartbeatRequest.json (apache#18285) HOTFIX: fix incompatible types: Optional<TimestampAndOffset> cannot be converted to Option<TimestampAndOffset> (apache#18284) MINOR Fix some test-catalog issues (apache#18272) KAFKA-18180: Move OffsetResultHolder to storage module (apache#18100) KAFKA-18301; Make coordinator records first class citizen (apache#18261) KAFKA-18262 Remove DefaultPartitioner and UniformStickyPartitioner (apache#18204) KAFKA-18296 Remove deprecated KafkaBasedLog constructor (apache#18257) KAFKA-12829: Remove old Processor and ProcessorSupplier interfaces (apache#18238) KAFKA-18292 Remove deprecated methods of UpdateFeaturesOptions (apache#18245) KAFKA-12829: Remove deprecated Topology#addProcessor of old Processor API (apache#18154) KAFKA-18035, KAFKA-18306, KAFKA-18092: Address TransactionsTest flaky tests (apache#18264) MINOR: change the default linger time in the new coordinator (apache#18274) KAFKA-18305: validate controller.listener.names is not in inter.broker.listener.name for kcontrollers (apache#18222) KAFKA-18207: Serde for handling transaction records (apache#18136) KAFKA-13722: Refactor Kafka Streams store interfaces (apache#18243) KAFKA-17131: Refactor TimeDefinitions (apache#18241) MINOR: Fix MessageFormatters (apache#18266) Mark flaky tests for Dec 18, 2024 (apache#18263)
…pache#18204) Reviewers: Chia-Ping Tsai <[email protected]>
The DefaultPartitioner and UniformStickyPartitioner have been deprecated by KAFKA-10888 since 2022, so we should remove them from version 4.0.
Committer Checklist (excluded from commit message)