Github user StephanEwen commented on the pull request:
https://github.com/apache/incubator-flink/pull/254#issuecomment-66325909
The `IntermediateResultPartitionManager` is not safe. To make it safe
against concurrent shutdown calls, it needs to make the check for the shutdown
flag and the HashMap manipulation atomic. Here, it means it needs a proper
lock, not two individually atomic structures.
I think it does not hurt there, as it only happens once per partition at
startup and once at cleanup time.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---