示例#1
0
 internal static void DeletePath(IZooKeeperClient zkClient, string path)
 {
     try
     {
         zkClient.Delete(path);
     }
     catch (KeeperException.NoNodeException)
     {
         Logger.InfoFormat(CultureInfo.CurrentCulture, "{0} deleted during connection loss; this is ok", path);
     }
 }
示例#2
0
 internal static void DeletePath(IZooKeeperClient zkClient, string path)
 {
     try
     {
         zkClient.Delete(path);
     }
     catch (KeeperException e)
     {
         if (e.ErrorCode == KeeperException.Code.NONODE)
         {
             Logger.InfoFormat("{0} deleted during connection loss; this is ok", path);
         }
         else
         {
             throw;
         }
     }
 }
示例#3
0
文件: ZkUtils.cs 项目: ewhauser/kafka
 internal static void DeletePath(IZooKeeperClient zkClient, string path)
 {
     try
     {
         zkClient.Delete(path);
     }
     catch (KeeperException.NoNodeException)
     {
         Logger.InfoFormat(CultureInfo.CurrentCulture, "{0} deleted during connection loss; this is ok", path);
     }
 }
 internal static void DeletePath(IZooKeeperClient zkClient, string path)
 {
     try
     {
         zkClient.Delete(path);
     }
     catch (KeeperException e)
     {
         if (e.ErrorCode == KeeperException.Code.NONODE)
             Logger.InfoFormat("{0} deleted during connection loss; this is ok", path);
         else
             throw;
     }
 }