public static final void initZK(ZooKeeper zkc,String selfBrokerUrl){
  try {
    LocalZooKeeperConnectionService.checkAndCreatePersistNode(zkc,OWNER_INFO_ROOT);
    cleanupNamespaceNodes(zkc,OWNER_INFO_ROOT,selfBrokerUrl);
  }
 catch (  Exception e) {
    LOG.error(e.getMessage(),e);
    throw new RuntimeException(e);
  }
}

public static final void initZK ( ZooKeeper zkc , String selfBrokerUrl ) { try { LocalZooKeeperConnectionService . checkAndCreatePersistNode ( zkc , OWNER_INFO_ROOT ) ; cleanupNamespaceNodes ( zkc , OWNER_INFO_ROOT , selfBrokerUrl ) ; } catch ( Exception e ) { LOG . error ( e . getMessage ( ) , e ) ; throw new RuntimeException ( e ) ; } }
initzk is only called when the namespaceservice is initialized . so , no need for synchronization .
