diff --git a/recipes/service-discovery/src/main/java/org/apache/helix/servicediscovery/ServiceDiscoveryDemo.java b/recipes/service-discovery/src/main/java/org/apache/helix/servicediscovery/ServiceDiscoveryDemo.java index be451aa528..c34ead9da4 100644 --- a/recipes/service-discovery/src/main/java/org/apache/helix/servicediscovery/ServiceDiscoveryDemo.java +++ b/recipes/service-discovery/src/main/java/org/apache/helix/servicediscovery/ServiceDiscoveryDemo.java @@ -47,6 +47,7 @@ public static void main(String[] args) throws Exception { // only registration + ondemand demo(clusterName, zkAddress, serviceName, numServices, Mode.NONE); + admin.close(); } private static void demo(String clusterName, String zkAddress, String serviceName,