private void doConcurrentNetSearchGetAndClear(Thread getter, InternalRegion region) {
    CacheObserverHolder.setInstance(observer);

    // start getThread
    getter.start();

    await().untilAsserted(() -> verify(observer, atLeast(1)).afterSettingDiskRef());

    // This test appears to be testing a problem with the non-RVV based clear. So we'll use that
    // functionality here. Region.clear uses an RVV, and will deadlock if called while the write
    // lock is held.
    RegionEventImpl regionEvent = new RegionEventImpl(region, Operation.REGION_CLEAR, null, false,
        region.getMyId(), region.generateEventID());

    // clearRegion to remove entry that getter has reference of
    ((LocalRegion) region).cmnClearRegion(regionEvent, true, false);
  }
The Clear operation during a NetSearchMessage.doGet() in progress can cause DiskAccessException
by accessing cleared oplogs and eventually destroy region. The Test verifies that fix prevents
this.

<p>
Test must be DistributedTest because it requires ClusterDistributionManager.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/ClearDuringNetSearchOplogRegressionTest.java