Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-8675] Add non-blocking shut down method to RestServerEndpoint #5511

Closed

Conversation

tillrohrmann
Copy link
Contributor

What is the purpose of the change

Make shut down method of RestServerEndpoint non blocking.

This PR is based on #5503.

Verifying this change

This change is already covered by existing tests, such as RestServerEndpointITCase.

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: (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)

FutureUtils#completeAll(Collection) takes a collection of futures and returns
a future which is completed after all of the given futures are completed. This
also includes exceptional completions. Potentially occurring exceptions are
recorded and combined into a single exception with which the resulting future
is completed.

FutureUtils#runAfterwards takes a future and runs a given action after the
completion of the given future. This also includes an exceptional completion.
In this case, a potentially occurring exception as the result of the provided
action will be combined with the future's exception.

This closes apache#5503.
tillrohrmann added a commit to tillrohrmann/flink that referenced this pull request Feb 18, 2018
Make shut down method of RestServerEndpoint non blocking.

This closes apache#5511.
tillrohrmann added a commit to tillrohrmann/flink that referenced this pull request Feb 18, 2018
Make shut down method of RestServerEndpoint non blocking.

This closes apache#5511.
Make shut down method of RestServerEndpoint non blocking.

This closes apache#5511.
tillrohrmann added a commit to tillrohrmann/flink that referenced this pull request Feb 19, 2018
Make shut down method of RestServerEndpoint non blocking.

This closes apache#5511.
@asfgit asfgit closed this in fac5aff Feb 19, 2018
@tillrohrmann tillrohrmann deleted the nonBlockingRestEndpointShutDown branch February 24, 2018 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants