Skip to content
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

KAFKA-16766: offset fetch timeout exception in new consumer consistent with legacy #16125

Merged
merged 2 commits into from
May 31, 2024

Conversation

lianetm
Copy link
Contributor

@lianetm lianetm commented May 29, 2024

Fix to ensure that a sensible error message is shown in TimeoutExceptions that may be thrown in offsetsForTimes, beginningOffsets and endOffsets, consistent with the message that the legacy consumer throws in these cases.

Before this fix, those functions timing out would throw a org.apache.kafka.common.errors.TimeoutException with message "java.util.concurrent.TimeoutException". This PR ensures a clear message is included (same message used by the LegacyKafkaConsumer)

@lianetm
Copy link
Contributor Author

lianetm commented May 29, 2024

Hey @lucasbru, @cadonna , could you take a look at this small fix? Thanks!

Copy link
Collaborator

@AndrewJSchofield AndrewJSchofield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@lucasbru lucasbru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@lucasbru lucasbru merged commit eb39031 into apache:trunk May 31, 2024
1 check failed
chiacyu pushed a commit to chiacyu/kafka that referenced this pull request Jun 1, 2024
…t with legacy (apache#16125)

* Timeout exception fetching offsets

* Tests
wernerdv pushed a commit to wernerdv/kafka that referenced this pull request Jun 3, 2024
…t with legacy (apache#16125)

* Timeout exception fetching offsets

* Tests
TaiJuWu pushed a commit to TaiJuWu/kafka that referenced this pull request Jun 8, 2024
…t with legacy (apache#16125)

* Timeout exception fetching offsets

* Tests
gongxuanzhang pushed a commit to gongxuanzhang/kafka that referenced this pull request Jun 12, 2024
…t with legacy (apache#16125)

* Timeout exception fetching offsets

* Tests
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.

3 participants