Skip to content

Commit 148e2f9

Browse files
authored
Revert "fix: Support disable Curator EnsembleTracker in ServiceDiscovery (#14…"
This reverts commit a534350.
1 parent 6b418bc commit 148e2f9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

dubbo-registry/dubbo-registry-zookeeper/src/main/java/org/apache/dubbo/registry/zookeeper/util/CuratorFrameworkUtils.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343

4444
import static org.apache.curator.x.discovery.ServiceInstance.builder;
4545
import static org.apache.dubbo.common.constants.CommonConstants.PATH_SEPARATOR;
46-
import static org.apache.dubbo.common.constants.CommonConstants.ZOOKEEPER_ENSEMBLE_TRACKER_KEY;
4746
import static org.apache.dubbo.registry.zookeeper.ZookeeperServiceDiscovery.DEFAULT_GROUP;
4847
import static org.apache.dubbo.registry.zookeeper.util.CuratorFrameworkParams.BASE_SLEEP_TIME;
4948
import static org.apache.dubbo.registry.zookeeper.util.CuratorFrameworkParams.BLOCK_UNTIL_CONNECTED_UNIT;
@@ -70,10 +69,8 @@ public static ServiceDiscovery<ZookeeperInstance> buildServiceDiscovery(
7069

7170
public static CuratorFramework buildCuratorFramework(URL connectionURL, ZookeeperServiceDiscovery serviceDiscovery)
7271
throws Exception {
73-
boolean ensembleTracker = connectionURL.getParameter(ZOOKEEPER_ENSEMBLE_TRACKER_KEY, true);
7472
CuratorFrameworkFactory.Builder builder = CuratorFrameworkFactory.builder()
7573
.connectString(connectionURL.getBackupAddress())
76-
.ensembleTracker(ensembleTracker)
7774
.retryPolicy(buildRetryPolicy(connectionURL));
7875
String userInformation = connectionURL.getUserInformation();
7976
if (StringUtils.isNotEmpty(userInformation)) {

0 commit comments

Comments
 (0)