@Test
  public void testInvalidateOperationDifferentVM() {
    try {
      setupMembers();
      setOpAndClearVM(vm0, vm1);
      opsVM.invoke(() -> setRemoveAndInvalidateHook(clearVM));
      runConsistencyTest(vm0, performInvalidateOperation);
      checkForConsistencyErrors();
    } finally {
      opsVM.invoke(this::resetHook);
    }
  }
Test class to verify proper RVV locking interaction between entry operations such as PUT/REMOVE
and the CLEAR region operation

GEODE-599: After an operation completed, it would unlock the RVV. This was occurring before the
operation was distributed to other members which created a window in which another operation
could be performed prior to that operation being distributed.

The fix for GEODE-599 was to not release the lock until after distributing the operation to the
other members.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/ClearRvvLockingDUnitTest.java