@Override
      public void beforeGoingToCompact() {
        closeRegionFuture.set(executorServiceRule.runAsync(() -> {
          try {
            region.close();
          } catch (AssertionError | Exception e) {
            errorCollector.addError(e);
          }
        }));

        // await until the roll flag DiskRegion.OplogCompactor is false (not currently exposed)
        try {
          Thread.sleep(8000);
        } catch (AssertionError | Exception e) {
          errorCollector.addError(e);
        }
      }
Regression test for TRAC #40250: If roller is active at the time of region.close it can end up
writing a dummy byte & thus lose the original value
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DiskRegionJUnitTest.java