public static boolean snapshotExists(SolrZkClient zkClient,String collectionName,String commitName) throws KeeperException, InterruptedException {
  String zkPath=getSnapshotMetaDataZkPath(collectionName,Optional.ofNullable(commitName));
  return zkClient.exists(zkPath,true);
}

public static boolean snapshotExists ( SolrZkClient zkClient , String collectionName , String commitName ) throws KeeperException , InterruptedException { String zkPath = getSnapshotMetaDataZkPath ( collectionName , Optional . ofNullable ( commitName ) ) ; return zkClient . exists ( zkPath , true ) ; }
this method returns if a named snapshot exists for the specified collection .
