@@ -34,6 +34,10 @@ public class ZkClientx extends ZkClient {
|
||||
return clients.get(servers);
|
||||
}
|
||||
|
||||
public static void clearClients() {
|
||||
clients.clear();
|
||||
}
|
||||
|
||||
public ZkClientx(String serverstring){
|
||||
this(serverstring, Integer.MAX_VALUE);
|
||||
}
|
||||
|
||||
@@ -503,6 +503,8 @@ public class CanalController {
|
||||
if (zkclientx != null) {
|
||||
zkclientx.close();
|
||||
}
|
||||
|
||||
ZkClientx.clearClients();
|
||||
}
|
||||
|
||||
private void initCid(String path) {
|
||||
|
||||
Reference in New Issue
Block a user