code: public LockedInodePath lockFullInodePath(AlluxioURI uri, LockPattern lockPattern)
        throws InvalidPathException, FileDoesNotExistException {
      LockedInodePath inodePath = lockInodePath(uri, lockPattern);
      if (!inodePath.fullPathExists()) {
        inodePath.close();
        throw new FileDoesNotExistException(ExceptionMessage.PATH_DOES_NOT_EXIST.getMessage(uri));
      }
      return inodePath;
    }
docs: Locks a path and throws an exception if the path does not exist.
  
  @param uri a uri to lock
  @param lockPattern the pattern to lock with
  @return a locked inode path for the uri