@Test
  public void testDiskAccessExceptionNotThrown() {
    File diskDir = newFolder(uniqueName);

    DiskRegionProperties diskRegionProperties = new DiskRegionProperties();
    diskRegionProperties.setDiskDirsAndSizes(new File[] {diskDir}, new int[] {10240});
    diskRegionProperties.setMaxOplogSize(1024);
    diskRegionProperties.setRolling(true);
    diskRegionProperties.setSynchronous(true);

    DiskStoreFactory diskStoreFactory = toDiskStoreFactory(diskRegionProperties);

    createDiskStoreWithSizeInBytes(diskStoreName, diskStoreFactory, 1024);

    Region<Integer, Object> region =
        createRegion(regionName, diskStoreName, true, true, false, true, DEFAULT_ENTRIES_MAXIMUM);

    byte[] bytes = new byte[256];

    for (int i = 0; i < 1500; i++) {
      region.put(i % 10, bytes);
    }
  }
Test to verify that DiskAccessException is not thrown if rolling has been enabled. The test
configurations will cause the disk to go full and wait for the compactor to release space. A
DiskAccessException should not be thrown by this test
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DiskRegionJUnitTest.java