Browse Source

refactor

pull/3/MERGE
baoliang 4 years ago
parent
commit
cde729f44b
  1. 7
      dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/zk/ZookeeperCachedOperator.java

7
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/zk/ZookeeperCachedOperator.java

@ -16,6 +16,8 @@
*/
package org.apache.dolphinscheduler.service.zk;
import org.apache.dolphinscheduler.common.thread.ThreadUtils;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.recipes.cache.ChildData;
import org.apache.curator.framework.recipes.cache.TreeCache;
@ -83,10 +85,7 @@ public class ZookeeperCachedOperator extends ZookeeperOperator {
@Override
public void close() {
treeCache.close();
try {
Thread.sleep(500);
} catch (InterruptedException ignore) {
}
ThreadUtils.sleep(500);
super.close();
}
}

Loading…
Cancel
Save