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-16916: Fixing error in completing future #16249

Merged
merged 3 commits into from
Jun 8, 2024

Conversation

apoorvmittal10
Copy link
Collaborator

Fix to complete Future which was stuck due the exception.getCause() throws an error.

The fix in the #16217 unblocked blocking thread but exception in catch block from blocking get call was wrapped in ExecutionException which is not the case when moved to async workflow hence getCause is not needed.

Committer Checklist (excluded from commit message)

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

Copy link
Contributor

@ableegoldman ableegoldman left a comment

Choose a reason for hiding this comment

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

FYI the PR to disable the test was already merged, so you'll need to re-enable it. See #16248

I don't have too much context on this but if the PR build passes without timing out (once you've renabled the test) then I'd say we merge it

@apoorvmittal10
Copy link
Collaborator Author

FYI the PR to disable the test was already merged, so you'll need to re-enable it. See #16248

I don't have too much context on this but if the PR build passes without timing out (once you've renabled the test) then I'd say we merge it

Sure, I have enabled the test and checked locally the tests are passing. Shall wait for build to complete.

Screenshot 2024-06-08 at 02 19 21
Screenshot 2024-06-08 at 02 18 18
Screenshot 2024-06-08 at 02 18 01

Copy link
Contributor

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

LGTM

@showuon
Copy link
Contributor

showuon commented Jun 8, 2024

The Ci test completed without timeout.

@showuon showuon merged commit 96036ae into apache:trunk Jun 8, 2024
1 check failed
TaiJuWu pushed a commit to TaiJuWu/kafka that referenced this pull request Jun 8, 2024
Fix to complete Future which was stuck due the exception.getCause() throws an error.

The fix in the apache#16217 unblocked blocking thread but exception in catch block from blocking get call was wrapped in ExecutionException which is not the case when moved to async workflow hence getCause is not needed.

Reviewers: Luke Chen <showuon@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
gongxuanzhang pushed a commit to gongxuanzhang/kafka that referenced this pull request Jun 12, 2024
Fix to complete Future which was stuck due the exception.getCause() throws an error.

The fix in the apache#16217 unblocked blocking thread but exception in catch block from blocking get call was wrapped in ExecutionException which is not the case when moved to async workflow hence getCause is not needed.

Reviewers: Luke Chen <showuon@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
jlprat pushed a commit to jlprat/kafka that referenced this pull request Jul 15, 2024
Fix to complete Future which was stuck due the exception.getCause() throws an error.

The fix in the apache#16217 unblocked blocking thread but exception in catch block from blocking get call was wrapped in ExecutionException which is not the case when moved to async workflow hence getCause is not needed.

Reviewers: Luke Chen <showuon@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
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.

4 participants