You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Lucy Liu (Jira)" <ji...@apache.org> on 2026/08/07 21:25:00 UTC

[jira] [Created] (KAFKA-20905) Remove deprecated headerless StreamPartitioner#partitions method

Lucy Liu created KAFKA-20905:
--------------------------------

             Summary: Remove deprecated headerless StreamPartitioner#partitions method
                 Key: KAFKA-20905
                 URL: https://issues.apache.org/jira/browse/KAFKA-20905
             Project: Kafka
          Issue Type: Sub-task
          Components: streams
    Affects Versions: 5.0.0
            Reporter: Lucy Liu
             Fix For: 5.0.0


h1. THIS TICKET CANNOT BE WORKED ON, UNTIL WE DO APACHE KAFKA 5.0 RELEASE.

[KIP-1321 |https://cwiki.apache.org/confluence/spaces/KAFKA/pages/421956773/KIP-1321+Headers+aware+StreamPartitioner#KIP1321:HeadersawareStreamPartitioner-PublicInterfacesdeprecated `StreamPartitioner#partitions(String topic, K key, V value, int numPartitions)` in favor of `partitions(String topic, K key, V value, Headers headers, int
numPartitions)`, which gives partitioning strategies access to record headers. Built-in partitioners already throw UnsupportedOperationException if the deprecated overload is
 invoked. This subtask tracks removing the deprecated overload in 5.0.0 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)