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

2018-02-24 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/FLINK-8665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16375514#comment-16375514
 ] 

ASF GitHub Bot commented on FLINK-8665:
---

Github user asfgit closed the pull request at:

https://github.com/apache/flink/pull/5498


> 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
>Priority: Major
>  Labels: flip-6
> 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}} 
> 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)


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

2018-02-15 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/FLINK-8665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16366110#comment-16366110
 ] 

ASF GitHub Bot commented on FLINK-8665:
---

GitHub user tillrohrmann opened a pull request:

https://github.com/apache/flink/pull/5498

[FLINK-8665] [rest] Let RpcEndpoint#postStop return completion future

## What is the purpose of the change

The RpcEndpoint#postStop method returns a CompletableFuture which is
completed once all post stop actions have completed. The termination future
of the respective RpcEndpoint is only completed afterwards.

This PR is based on #5496.

## Verifying this change

This change is already covered by existing tests, such as 
`AkkaRpcActorTest#testActorTerminationWithAsynchronousPostStopAction`.

## 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)
  - If yes, how is the feature documented? (not applicable)


You can merge this pull request into a Git repository by running:

$ git pull https://github.com/tillrohrmann/flink postStopFuture

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/flink/pull/5498.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 #5498


commit 1a077c7bb7d6240e86171dbbbd77e43668a7fe6c
Author: Till Rohrmann 
Date:   2018-02-15T17:43:39Z

[FLINK-8664] [rest] Change RpcEndpoint#TerminationFuture value type to Void

commit 7911549b935ab91b5b762db621966bc0c252501c
Author: Till Rohrmann 
Date:   2018-02-15T16:58:35Z

[hotfix] Remove unused method 
MiniCluster#waitUntilTaskManagerRegistrationsComplete

commit c18d71bacd4194e7d6d4501226a2ed29f042ec5e
Author: Till Rohrmann 
Date:   2018-02-15T17:14:55Z

[hotfix] Don't fail LeaderContender and Listener when closing 
EmbeddedLeaderService

commit 090b4d7d5537df6300f7a552542f4a9d2a3c79ae
Author: Till Rohrmann 
Date:   2018-02-15T17:22:21Z

[hotfix] Fix checkstyle violations in RpcEndpoint

commit 81c57923052f15bf848d0fc803ec5ef2cb548398
Author: Till Rohrmann 
Date:   2018-02-15T18:19:48Z

[FLINK-8665] [rest] Let RpcEndpoint#postStop return completion future

The RpcEndpoint#postStop method returns a CompletableFuture which is
completed once all post stop actions have completed. The termination future
of the respective RpcEndpoint is only completed afterwards.




> 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
>Priority: Major
>  Labels: flip-6
> 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}} 
> 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)