You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "dbottini2 (via GitHub)" <gi...@apache.org> on 2026/05/11 08:52:38 UTC

[PR] docs: Document actual ProducerRecord default partitioner strategy [kafka]

dbottini2 opened a new pull request, #22253:
URL: https://github.com/apache/kafka/pull/22253

   Since Kafka 2.4, the default partitioning strategy when producing records has been a Sticky strategy that allows for batch + linger configurations; and with recent evolutions around adaptive partitioning and rack awareness. References to round robin as the default are incorrect and misleading.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] docs: Document actual ProducerRecord default partitioner strategy [kafka]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22253:
URL: https://github.com/apache/kafka/pull/22253#issuecomment-4484392133

   A label of 'needs-attention' was automatically added to this PR in order to raise the
   attention of the committers. Once this issue has been triaged, the `triage` label
   should be removed to prevent this automation from happening again.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] docs: Document actual ProducerRecord default partitioner strategy [kafka]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22253:
URL: https://github.com/apache/kafka/pull/22253#issuecomment-6307501443

   This PR is being marked as stale since it has not had any activity in 90 days. If you
   would like to keep this PR alive, please leave a comment asking for a review. If the PR has 
   merge conflicts, update it with the latest from the base branch.
   <p>
   If you are having difficulty finding a reviewer, please reach out on the 
   [mailing list](https://kafka.apache.org/contact).
   <p>
   If this PR is no longer valid or desired, please feel free to close it. If no activity
   occurs in the next 30 days, it will be automatically closed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] docs: Document actual ProducerRecord default partitioner strategy [kafka]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22253:
URL: https://github.com/apache/kafka/pull/22253#issuecomment-6379225442

   A label of 'needs-attention' was automatically added to this PR in order to raise the
   attention of the committers. Once this issue has been triaged, the `triage` label
   should be removed to prevent this automation from happening again.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] docs: Document actual ProducerRecord default partitioner strategy [kafka]

Posted by "chia7712 (via GitHub) via jira" <ji...@kafka.apache.org>.
chia7712 commented on code in PR #22253:
URL: https://github.com/apache/kafka/pull/22253#discussion_r4516416713


##########
clients/src/main/java/org/apache/kafka/clients/producer/ProducerRecord.java:
##########
@@ -28,7 +28,9 @@
  * <p>
  * If a valid partition number is specified that partition will be used when sending the record. If no partition is
  * specified but a key is present a partition will be chosen using a hash of the key. If neither key nor partition is
- * present a partition will be assigned in a round-robin fashion. Note that partition numbers are 0-indexed.
+ * present a partition will be assigned utilizing the {@link org.apache.kafka.clients.producer.Partitioner}

Review Comment:
   The default logic depends on the `BuiltInPartitioner`, right?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org