@Test
  public void testEntryDestructionInSyncPersistOnlyForIOExceptionCase() {
    DiskRegionProperties diskRegionProperties = new DiskRegionProperties();
    diskRegionProperties.setRegionName(regionName);
    diskRegionProperties.setOverflow(false);
    diskRegionProperties.setRolling(false);
    diskRegionProperties.setDiskDirs(diskDirs);
    diskRegionProperties.setPersistBackup(true);

    DiskStoreFactory diskStoreFactory = toDiskStoreFactory(diskRegionProperties);

    createDiskStoreWithSizeInBytes(diskStoreName, diskStoreFactory);

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

    region.create("key1", "value1");

    // Get the oplog handle & hence the underlying file & close it
    getDiskRegion(region).testHook_getChild().testClose();

    Throwable thrown = catchThrowable(() -> region.destroy("key1"));
    assertThat(thrown).isInstanceOf(DiskAccessException.class);

    verifyClosedDueToDiskAccessException(region);
  }
If IOException occurs while destroying an entry in a persist only sync mode,
DiskAccessException should occur & region should be destroyed
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DiskRegionJUnitTest.java