@Override
      public Void call() throws Exception {
        int logs = 40000; // Prevent excessive logging in case of deadlocks or slowness.
        while ((--logs) >= 0) {
          LOG.info("Allocator state (MTT): " + a.testDump());
          Thread.sleep(10);
        }
        return null;
      }
This relies on allocations basically being sequential, no internal reordering. Rather,
the specific paths it takes do; all the scenarios should work regardless of allocation.
llap-server/src/test/org/apache/hadoop/hive/llap/cache/TestBuddyAllocatorForceEvict.java