示例#1
0
 /// <summary>
 /// Delete a config in ZooKeeper
 /// </summary>
 /// <param name="configName">The config to delete</param>
 /// <param name="token"></param>
 /// <exception cref="IOException">If an I/O error occurs</exception>
 public async Task deleteConfigDir(string configName, CancellationToken token)
 {
     try
     {
         await zkClient.clean(ConfigsZKnode + "/" + configName, token);
     }
     catch (Exception ex)
     {
         if (ex is KeeperException || ex is ThreadInterruptedException)
         {
             throw new IOException("Error checking whether config exists", SolrZkClient.checkInterrupted(ex));
         }
         throw;
     }
 }