Skip to content

KAFKA-16916: Fixing error in completing future#16249

Merged
showuon merged 3 commits intoapache:trunkfrom
apoorvmittal10:KAFKA-16916
Jun 8, 2024
Merged

KAFKA-16916: Fixing error in completing future#16249
showuon merged 3 commits intoapache:trunkfrom
apoorvmittal10:KAFKA-16916

Conversation

@apoorvmittal10
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

@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
Copy Markdown
Contributor 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
Copy Markdown
Member

@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
Copy Markdown
Member

showuon commented Jun 8, 2024

The Ci test completed without timeout.

@showuon showuon merged commit 96036ae into apache:trunk Jun 8, 2024
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