[jira] [Created] (FLINK-8665) Allow RpcEndpoint#postStop to complete asynchronously

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-8665) Allow RpcEndpoint#postStop to complete asynchronously

Shang Yuanchun (Jira)
Till Rohrmann created FLINK-8665:
------------------------------------

             Summary: Allow RpcEndpoint#postStop to complete asynchronously
                 Key: FLINK-8665
                 URL: https://issues.apache.org/jira/browse/FLINK-8665
             Project: Flink
          Issue Type: Sub-task
          Components: Distributed Coordination
    Affects Versions: 1.5.0
            Reporter: Till Rohrmann
            Assignee: Till Rohrmann
             Fix For: 1.5.0


Every {{RpcEndpoint}} should have the possibility to trigger asynchronous clean up operations in its {{RpcEndpoint#postStop}} method. In order to do that the {{postStop}} method should return a {{CompletableFuture<Void>}} which is completed once all post stop actions have finished. The {{RpcEndpoint#terminationFuture}} will only be completed afterwards.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)