@Test
  public void testEntryDeletionInSyncOverflowOnlyForIOExceptionCase() {
    DiskRegionProperties diskRegionProperties = new DiskRegionProperties();
    diskRegionProperties.setOverflow(true);
    diskRegionProperties.setRolling(false);
    diskRegionProperties.setDiskDirs(diskDirs);
    diskRegionProperties.setPersistBackup(false);
    diskRegionProperties.setOverFlowCapacity(1);

    DiskStoreFactory diskStoreFactory = toDiskStoreFactory(diskRegionProperties);

    createDiskStoreWithSizeInBytes(diskStoreName, diskStoreFactory);

    Region<String, String> region =
        createRegion(regionName, diskStoreName, false, true, false, true, 1);

    region.create("key1", "value1");
    region.create("key2", "value2");
    region.create("key3", "value3");

    getDiskRegion(region).testHookCloseAllOverflowChannels();

    // Update key1, so that key2 goes on disk & encounters an exception
    region.destroy("key1");
    region.destroy("key3");
  }
A deletion of an entry in overflow only mode should not cause any eviction & hence no
DiskAccessException
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DiskRegionJUnitTest.java