void decBackgroundTasks() {
    int v = backgroundTasks.decrementAndGet();
    if (v == 0) {
      synchronized (backgroundTasks) {
        backgroundTasks.notifyAll();
      }
    }
    getCache().getCachePerfStats().decDiskTasksWaiting();
  }
stops the compactor outside the write lock. Once stopped then it proceeds to destroy the
current & old oplogs
geode-core/src/main/java/org/apache/geode/internal/cache/DiskStoreImpl.java