Skip to content

KAFKA-20232: Fix WakeupException in awaitMetadataUpdate()#21592

Open
Baisang wants to merge 1 commit intoapache:trunkfrom
Baisang:KAFKA-20232_wakeup_awaitmetadaupdate
Open

KAFKA-20232: Fix WakeupException in awaitMetadataUpdate()#21592
Baisang wants to merge 1 commit intoapache:trunkfrom
Baisang:KAFKA-20232_wakeup_awaitmetadaupdate

Conversation

@Baisang
Copy link

@Baisang Baisang commented Feb 26, 2026

Asynchronous offset commits may throw an unexpected WakeupException. This was addressed for some code paths previously in #12626, but left out for the awaitMetadataUpdate() code path. This patch fixes the problem by passing through a flag to awaitMetadataUpdate() to indicate whether wakeups should be disabled. This is used to disable wakeups in the context of asynchronous offset commits. All other uses leave wakeups enabled.

@github-actions github-actions bot added triage PRs from the community consumer clients small Small PRs labels Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clients consumer small Small PRs triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant