[
https://issues.apache.org/jira/browse/FLINK-24184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Piotr Nowojski closed FLINK-24184.
----------------------------------
Resolution: Fixed
merged commit 4ea9908 into apache:master
merged commit 79a801a7bf6 into apache:master
as this is an old lowest priority bug fix, that has never been observed and
there are merge conflicts with 1.13 branch, I'm not backporting it to 1.13.
> Potential race condition leading to incorrectly issued interruptions
> --------------------------------------------------------------------
>
> Key: FLINK-24184
> URL: https://issues.apache.org/jira/browse/FLINK-24184
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Task
> Affects Versions: 1.8.3, 1.9.3, 1.10.3, 1.11.4, 1.14.0, 1.12.5, 1.13.2
> Reporter: Piotr Nowojski
> Assignee: Piotr Nowojski
> Priority: Not a Priority
> Labels: pull-request-available
> Fix For: 1.15.0, 1.14.1
>
>
> There is a race condition in disabling interrupts while closing resources.
> Currently this is guarded by a volatile variable, but there might be a race
> condition when:
> 1. interrupter thread first checked the shouldInterruptOnCancel flag
> 2. shouldInterruptOnCancel flag switched to false as Task/StreamTask entered
> cleaning up phase
> 3. interrupter issued an interrupt while Task/StreamTask are
> closing/releasing resources, potentially causing a memory leak
--
This message was sent by Atlassian Jira
(v8.3.4#803005)