未验证 提交 06e8e247 编写于 作者: W wind 提交者: GitHub

[DS-6616][WorkerServer] fix worker stop fail and fakes death (#6621)

* [DS-6616][WorkerServer] fix worker stop fail and fakes death

* remove unuse test

* just add try catch to remove zk worker path
Co-authored-by: Ncaishunfeng <534328519@qq.com>
上级 03aaef0f
......@@ -122,15 +122,22 @@ public class WorkerRegistryClient {
* remove registry info
*/
public void unRegistry() {
try {
String address = getLocalAddress();
Set<String> workerZkPaths = getWorkerZkPaths();
for (String workerZkPath : workerZkPaths) {
registryClient.remove(workerZkPath);
logger.info("worker node : {} unRegistry from ZK {}.", address, workerZkPath);
}
} catch (Exception ex) {
logger.error("remove worker zk path exception", ex);
}
this.heartBeatExecutor.shutdownNow();
logger.info("heartbeat executor shutdown");
registryClient.close();
logger.info("registry client closed");
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册