Example #1
0
 static boolean hasLease(MiniDFSCluster cluster, Path src) {
   return cluster.getNameNode().namesystem.leaseManager.getLeaseByPath(src.toString()) != null;
 }