Exemplo n.º 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);
     }
 }
Exemplo n.º 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;
         }
     }
 }
Exemplo n.º 3
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);
     }
 }
Exemplo n.º 4
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;
     }
 }