public static void resetTimeout(long timeoutMs) throws MetaException {
    if (timeoutMs <= 0) {
      throw MetaStoreUtils.newMetaException(new DeadlineException("The reset timeout value should be " +
          "larger than 0: " + timeoutMs));
    }
    Deadline deadline = getCurrentDeadline();
    if (deadline != null) {
      deadline.timeoutNanos = timeoutMs * 1000000L;
    } else {
      throw MetaStoreUtils.newMetaException(new DeadlineException("The threadlocal Deadline is null," +
          " please register it first."));
    }
  }
reset the timeout value of this timer.
@param timeoutMs
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/Deadline.java