Skip to content

KAFKA-9965/KAFKA-13303: RoundRobinPartitioner broken by KIP-480 #20114

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

Open
wants to merge 3 commits into
base: 3.9
Choose a base branch
from

Conversation

jim0987795064
Copy link
Contributor

@jim0987795064 jim0987795064 commented Jul 6, 2025

RoundRobinPartitioner behaviour was broken by sticky partitioning (KIP-480).

This patch addresses the behavioural issue caused by the second call to partition() after onNewBatch(), in a predictable and thread-safe manner.

Unit tested by simulation of multiple threads producing to two topics with race conditions.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@jim0987795064 jim0987795064 changed the title KAFKA-9965/KAFKA-13303: RoundRobinPartitioner broken by KIP-480 (WIP)KAFKA-9965/KAFKA-13303: RoundRobinPartitioner broken by KIP-480 Jul 10, 2025
@jim0987795064 jim0987795064 changed the title (WIP)KAFKA-9965/KAFKA-13303: RoundRobinPartitioner broken by KIP-480 KAFKA-9965/KAFKA-13303: RoundRobinPartitioner broken by KIP-480 Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant