Github user beyond1920 commented on the issue: https://github.com/apache/flink/pull/2427 @mxm , thanks for your review. I had change the code based on your advice, the changes are following: 1. move all code in the methods handleGrantLeadership, revokeLeadership, onLeaderElectionError to ResourceManagerLeaderContender class from ResourceManager 2. change getAddress method in ResourceManagerLeaderContender. 3. change callAsync method in TestingSerialRpcService, now it will be executed immediately rather than wait for some time. 4. change TestingSerialRpcService to extend RpcService directly rather than TestingRpcService.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---