@Test
  public void testBug40648part1() {
    DiskRegionProperties diskRegionProperties = new DiskRegionProperties();
    diskRegionProperties.setRegionName(regionName);
    diskRegionProperties.setRolling(true);
    diskRegionProperties.setDiskDirs(diskDirs);
    diskRegionProperties.setMaxOplogSize(500 * 2);
    diskRegionProperties.setOverFlowCapacity(1);

    DiskStoreFactory diskStoreFactory = toDiskStoreFactory(diskRegionProperties);

    createDiskStoreWithSizeInBytes(diskStoreName, diskStoreFactory, 1000);

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

    // long loop and no assertions just to verify nothing throws

    byte[] payload = new byte[100];
    for (int i = 0; i < 1000; i++) {
      region.put(0, payload);
      region.put(1, payload);
    }
  }
Regression test for TRAC #40648: oplog rolling fails reading with Bad file descriptor
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DiskRegionJUnitTest.java