GitHub user kl0u opened a pull request:
https://github.com/apache/flink/pull/4993
[FLINK-7974][FLINK-7975][QS] Wait for shutdown in QS client and servers.
## What is the purpose of the change
Previously we were freeing the resources held by the QS client and servers
on `shutdown()`, but we were not waiting for this to complete. Now we are
waiting for everything to be freed.
## Brief change log
The `Client` and the `AbstractServerBase` contain the biggest changes. The
actual implementations (`KvStateClientProxyImpl`, `KvStateServerImpl`, and
`QueryableStateClient`) build on that.
## Verifying this change
Some tests were also adjusted but mainly the changes are tested in
`AbstractServerTest`.
## 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: NO
- The S3 file system connector: NO
## Documentation
- Does this pull request introduce a new feature? NO
- If yes, how is the feature documented? not applicable
R @aljoscha or @tillrohrmann
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kl0u/flink qs-shutdown-fin
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/4993.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 #4993
----
commit 46bced58030a76d65163369b58f9c02c814a4e08
Author: kkloudas <[email protected]>
Date: 2017-11-09T18:21:43Z
[FLINK-7975][QS] Wait for QS client to shutdown.
commit 62f80529f5657223d792576686ddad6832d13506
Author: kkloudas <[email protected]>
Date: 2017-11-09T18:30:29Z
[FLINK-7974][QS] Wait for QS abstract server to shutdown.
----
---