Github user StephanEwen commented on the pull request:
https://github.com/apache/flink/commit/2477161352e12e75e2f0f85b5833ad04dc6d31f2#commitcomment-18252297
In
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTaskState.java:
In
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTaskState.java
on line 103:
The pattern is
- cache the reference on stack (immutable against concurrent
modifications)
- set the heap reference to null
- proceed based on the stack reference
I think that should work. If the heap reference was non null initially
before, the stack reference is non null, and the condition is true.
---
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.
---