public synchronized void dumpLog(boolean doSleep) {
      if (doSleep) {
        try {
          Thread.sleep(100);
        } catch (InterruptedException ignored) {
        }
      }
      int logSize = offset.get();
      int ix = 0;
      while (ix < logSize) {
        ix = dumpOneLine(ix);
      }
      offset.set(0);
    }
Unsets the headers (meaning this does not refer to a buffer).
llap-server/src/java/org/apache/hadoop/hive/llap/cache/BuddyAllocator.java