@Override
          public void run2() throws CacheException {
            Query statusQuery = getCache().getQueryService()
                .newQuery("select * from " + SEPARATOR + name + " p where p.ID > -1");

            while (!hooked) {
              Wait.pause(10);
            }
            try {
              getCache().getLogger().fine("Querying the region");
              SelectResults results = (SelectResults) statusQuery.execute();
              assertEquals(100, results.size());
            } catch (Exception e) {
              e.printStackTrace();
            }
          }
Test creates a persistent-overflow region and performs updates in region which has compact
indexes and queries the indexes simultaneously.

This test's main purpose is to look for deadlock problems caused by NOT taking early locks on
compact indexes and remove the requirement of the system property
gemfire.index.acquireCompactIndexLocksWithRegionEntryLocks.
geode-core/src/distributedTest/java/org/apache/geode/cache/query/internal/index/ConcurrentIndexOperationsOnOverflowRegionDUnitTest.java