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

Loading…
Cancel
Save