Skip to content

KAFKA-16235: Skip deleted-topic auto-commit retries before rebalance - #23213

Open
MdTanwer wants to merge 1 commit into
apache:trunkfrom
MdTanwer:KAFKA-16235-deleted-topic-regex-commit-hang
Open

KAFKA-16235: Skip deleted-topic auto-commit retries before rebalance#23213
MdTanwer wants to merge 1 commit into
apache:trunkfrom
MdTanwer:KAFKA-16235-deleted-topic-regex-commit-hang

Conversation

@MdTanwer

@MdTanwer MdTanwer commented Aug 20, 2026

Copy link
Copy Markdown

This change is my original work and I license it to the Apache Kafka project under the Apache License 2.0.

Summary

  • Classic ConsumerCoordinator no longer retries UNKNOWN_TOPIC_OR_PARTITION while auto-committing before JoinGroup (onJoinPrepare). A deleted topic cannot recover; the old retry loop blocked rebalance and, with the EAGER protocol, paused fetches for all assigned partitions (regex subscribe + topic delete).
  • Auto-commit now omits partitions whose topics have left the subscription (regex drop). COORDINATOR_LOAD_IN_PROGRESS is still retried. User commitSync still retries UTOR.

Fixes KAFKA-16235 (regression since 3.2.1 after KAFKA-14024). Aligns classic rebalance commit with KAFKA-16224 on the new consumer.

Regex subscriptions that lose a topic currently retry OffsetCommit on UNKNOWN_TOPIC_OR_PARTITION until rebalance.timeout.ms, which blocks JoinGroup and pauses fetches for every assigned partition.

Generated-by: Cursor Grok 4.6
@github-actions github-actions Bot added triage PRs from the community consumer clients labels Aug 20, 2026
@MdTanwer
MdTanwer marked this pull request as draft August 20, 2026 09:46
@MdTanwer
MdTanwer marked this pull request as ready for review August 20, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clients consumer triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant