[FLINK-4141] remove leaderUpdated() method from ResourceManager
This removes the leaderUpdated method from the framework. Further it lets the RM client thread communicate directly with the ResourceManager actor. This is fine since the two are always spawned together. Failures of the ResourceManager actor will lead to dropped messages of the RM client thread. Failures of the RM client thread will inform the JobManager. The leaderUpdated() method was used to signal the ResourceManager framework that a new leader was elected. However, the method was not always called when the leader changed, only when a new leader was elected. This dropped all messages from the async Yarn RM client thread (YarnResourceManagerCallbackHandler) for the time that the old leader had failed and no new leader had been elected. The Yarn RM client thread used leader tagged messages to communicate with the main Flink ResourceManager actor. This closes #2190
Showing
想要评论请 注册 或 登录