GitHub user pnowojski opened a pull request: https://github.com/apache/flink/pull/4851
[FLINK-7623][tests] Add tests to make sure operator is never restored when using new operator id ## What is the purpose of the change This PR adds tests coverage for correct behaviour of `ManagedInitializationContext#isRestored` flag - if application is restarted and a some operator has a new `uid`, it should return false. This bug was fixed by #4353. ## Brief change log Please check commit messages for change log ## Verifying this change This PR adds `RestoreStreamTaskTest` and is not changing any productional code. You can merge this pull request into a Git repository by running: $ git pull https://github.com/pnowojski/flink f7623 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/4851.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 #4851 ---- commit a99d384fcd5b021b71dc703d0e9e8063bd72f89e Author: Piotr Nowojski <piotr.nowoj...@gmail.com> Date: 2017-10-18T13:02:02Z [hotfix][streaming] Fix formatting in OperatorChain commit 5a2972d5f02521166c70ad68ad3fac0df9fad2e8 Author: Piotr Nowojski <piotr.nowoj...@gmail.com> Date: 2017-10-18T14:01:38Z [hotfix][tests] Add easier way to chain operator in StreamTaskTestHarness commit 26cabd7762458633be891b746d06595a873033b4 Author: Piotr Nowojski <piotr.nowoj...@gmail.com> Date: 2017-10-18T15:18:19Z [hotfix][tests] Extract AcknowledgeStreamMockEnvironment commit 2d6b45a55b8c63df4635a2d5506eab4b5ab590c3 Author: Piotr Nowojski <piotr.nowoj...@gmail.com> Date: 2017-10-18T13:01:37Z [FLINK-7623][tests] Add tests to make sure operator is never restored when using new operator id ---- ---