GitHub user sihuazhou opened a pull request:
https://github.com/apache/flink/pull/5525
[FLINK-8699][hotfix] Fix in concurrency problem for full Checkpoint.
This PR fix [FLINK-8699](https://issues.apache.org/jira/browse/FLINK-8699).
In fully checkpoint, `kvStateInformation` is not a copied object and it can be
changed when writeKVStateMetaData() is invoking ... This can lead to
problematic, which is serious.
## Brief change log
- Copy `kvStateInformation` to avoid concurrency problem.
## Verifying this change
- This change can be verified by the existed unit tests.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (no)
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: (no)
- The serializers: (no)
- The runtime per-record code paths (performance sensitive): (no)
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes)
- The S3 file system connector: (no)
## Documentation
- Does this pull request introduce a new feature? (no)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sihuazhou/flink hotfix_full_checkpoint
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/5525.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #5525
commit de191cdd8ab6073cd6c06c3c3f0174f15c08369a
Author: sihuazhou
Date: 2018-02-19T12:13:58Z
fix in concurrency problem for full Checkpoint.
---