@Override
      public void beforeGoingToCompact() {
        didBeforeCall = true;
        synchronized (freezeRoller) {
          if (!assertDone) {
            try {
              // Here, we are not allowing the Roller thread to roll the old oplog into htree
              while (!freezeRoller.get()) {
                freezeRoller.wait();
              }
              freezeRoller.set(false);
            } catch (InterruptedException e) {
              fail("interrupted");
            }
          }
        }
      }
tests directory stats are correctly updated in case of single directory (for bug 37531)
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/OplogJUnitTest.java