@Test
  public void testOperationGreaterThanMaxOplogSize() {
    DiskRegionProperties diskRegionProperties = new DiskRegionProperties();
    diskRegionProperties.setDiskDirs(diskDirs);
    diskRegionProperties.setMaxOplogSize(512);
    diskRegionProperties.setRolling(true);

    DiskStoreFactory diskStoreFactory = toDiskStoreFactory(diskRegionProperties);

    createDiskStoreWithSizeInBytes(diskStoreName, diskStoreFactory);

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

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

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

    assertThat(puts.diskAccessExceptionOccurred())
        .as(" Exception was not supposed to occur but did occur").isFalse();
  }
DiskDirectoriesJUnitTest:

This tests the potential deadlock situation if the region is created such that rolling is
turned on but the Max directory space is less than or equal to the Max Oplog Size. In such
situations , if during switch over , if the Oplog to be rolled is added after function call of
obtaining nextDir , a dead lock occurs
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DiskRegionJUnitTest.java