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

[FLINK-10455][Kafka Tx] Close transactional producers in case of failure and termination #7107

Merged
merged 1 commit into from Nov 16, 2018

Conversation

azagrebin
Copy link
Contributor

1.5 back port of #6989
cc @pnowojski

…ure and termination (apache#6989)

This commit addresses the problem of potential leak of resources associated with unclosed Kafka transactional producers in case of commitment failure or task shutdown.

1. always close producer even if commit fails in TwoPhaseCommitSinkFunction#notifyCheckpointComplete
2. close pending transactions in close method of Kafka Flink function in case of task shutdown
3. continue trying to commit other transactions in TwoPhaseCommitSinkFunction#notifyCheckpointComplete if any of them failed
@pnowojski pnowojski merged commit e493d83 into apache:release-1.5 Nov 16, 2018
@pnowojski
Copy link
Contributor

Thanks @azagrebin, merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants