public boolean tryAcquire() {
    return tryAcquire(defaultTimeout, TimeUnit.SECONDS);
  }
Acquires the compile lock. If the compile lock wait timeout is configured,
it will acquire the lock if it is not held by another thread within the given
waiting time.

@return {@code true} if the lock was successfully acquired,
or {@code false} if compile lock wait timeout is configured and
either the waiting time elapsed before the lock could be acquired
or the current thread was interrupted.
ql/src/java/org/apache/hadoop/hive/ql/lock/CompileLock.java