Skip to content

FLINK-37949: Avoid netty deadlock with graceful shutdown #215

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jayteej
Copy link

@jayteej jayteej commented Jun 16, 2025

https://issues.apache.org/jira/browse/FLINK-37949 shows that a deadlock in the netty client can cause savepoint delay. This change ensures that any pending operations are terminated before closing down the client and also updates the latest minor version of netty in case this is a known deadlock issue.

Copy link

boring-cyborg bot commented Jun 16, 2025

Thanks for opening this pull request! Please check out our contributing guidelines. (https://flink.apache.org/contributing/how-to-contribute.html)

@leekeiabstraction
Copy link
Contributor

Thank you for the contribution, Jason. Approved!

Copy link
Contributor

@hlteoh37 hlteoh37 left a comment

Choose a reason for hiding this comment

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

LGTM @jayteej Thanks for the contribution!

Some housekeeping, if that's ok! 👀

  1. CI is failing due to formatting errors, do you mind running mvn spotless:apply to fix them?
  2. The title of the commit is not correct - can we squash into 1 and follow the format of [FLINK-37949][Connectors/Kinesis] xxxx ?

@jayteej jayteej force-pushed the FLINK-37949 branch 5 times, most recently from 94b7a8e to 161529a Compare July 7, 2025 11:49
@jayteej
Copy link
Author

jayteej commented Jul 7, 2025

LGTM @jayteej Thanks for the contribution!

Some housekeeping, if that's ok! 👀

  1. CI is failing due to formatting errors, do you mind running mvn spotless:apply to fix them?
  2. The title of the commit is not correct - can we squash into 1 and follow the format of [FLINK-37949][Connectors/Kinesis] xxxx ?

Sorry for the delay @jayteej hlteoh37. I didn't notice u responded. I've had to refactor this as the trunk changed the file structure quite a lot. And thanks for the review

…t Netty deadlocks
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.

None yet

3 participants