private boolean waitForState() {
    synchronized (state) {
      try {
        state.wait(10);
        return true;
      } catch (InterruptedException e) {
        LlapIoImpl.LOG.debug("Buffer incRef is deffering an interrupt");
        Thread.currentThread().interrupt();
        return false;
      }
    }
  }
Marks previously invalidated buffer as released.
@return Whether the buffer memory can be released.
llap-server/src/java/org/apache/hadoop/hive/llap/cache/LlapAllocatorBuffer.java