@Test
  public void testOperationGreaterThanMaxDirSize() {
    int[] diskDirSizes = {1025, 1025, 1025, 1025};

    DiskRegionProperties diskRegionProperties = new DiskRegionProperties();
    diskRegionProperties.setRegionName(regionName);
    diskRegionProperties.setDiskDirsAndSizes(diskDirs, diskDirSizes);
    diskRegionProperties.setMaxOplogSize(600);
    diskRegionProperties.setRolling(false);

    DiskStoreFactory diskStoreFactory = toDiskStoreFactory(diskRegionProperties);

    DiskStore diskStore = createDiskStoreWithSizeInBytes(diskStoreName, diskStoreFactory);

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

    assertThat(diskStore.getDiskDirSizes())
        .as("expected=" + Arrays.toString(diskDirSizes) + " actual="
            + Arrays.toString(diskStore.getDiskDirSizes()))
        .isEqualTo(diskDirSizes);

    Puts puts = new Puts(region, 1026);
    puts.performPuts();

    assertThat(puts.diskAccessExceptionOccurred())
        .as(" Exception was not supposed to occur but did occur").isTrue();

    assertThat(puts.putSuccessful(0)).as(" first put did not succeed").isFalse();
    assertThat(puts.putSuccessful(1)).as(" second put did not succeed").isFalse();
    assertThat(puts.putSuccessful(2)).as(" third put did not succeed").isFalse();

    // if the exception occurred then the region should be closed already
    verifyClosedDueToDiskAccessException(region);
  }
As we have relaxed the constraint of max dir size
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DiskRegionJUnitTest.java