Remove extra root creation in ZKMetadataStore

This commit is contained in:
Artem Bilan
2022-09-15 11:33:39 -04:00
parent e527c6e321
commit a4997c67a0

View File

@@ -263,10 +263,6 @@ public class ZookeeperMetadataStore implements ListenableMetadataStore, SmartLif
public synchronized void start() {
if (!this.running) {
try {
this.client.checkExists()
.creatingParentContainersIfNeeded()
.forPath(this.root);
this.client.createContainers(this.root);
this.cache = CuratorCache.builder(this.client, this.root).build();
this.cache.listenable().addListener(new MetadataStoreCacheListener());