path = StagePathUtils.getProcess(getPipelineId(), processId);
// 2. 监听当前的process列表的变化
IZkConnection connection = zookeeper.getConnection();
// zkclient包装的是一个持久化的zk,分布式lock只需要一次性的watcher,需要调用原始的zk链接进行操作
ZooKeeper orginZk = ((ZooKeeperx) connection).getZookeeper();
List<String> currentStages = orginZk.getChildren(path, new AsyncWatcher() {
public void asyncProcess(WatchedEvent event) {
MDC.put(ArbitrateConstants.splitPipelineLogFileKey, String.valueOf(getPipelineId()));
if (isStop()) {
return;