geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Huynh (JIRA)" <>
Subject [jira] [Commented] (GEODE-631) CI failure: PRQueryRegionDestroyedDUnitTest.testPRWithRegionDestroyInOneDatastoreWithDelay
Date Wed, 20 Jan 2016 22:51:40 GMT


Jason Huynh commented on GEODE-631:

This test creates a pr across 2 nodes and then asynchronously executes a list of queries.
 The main thread sleeps for 5 milliseconds and kicks off another asynch task that does a region
close in one of the randomly chosen nodes but soon after closing, will recreate the region.

The test expects the thread executing the list of queries to hit a ForceReattemptException.
 Based on this, it looks like this test could be running into a race condition where the query
is executing after the region has been destroyed before query compilation.  

Due to the way this test is written, the original test would have probably always failed intermittently.
 We can add a RegionNotFoundException to the check but in the long run we should figure out
a way to write a better test for this scenario.

> CI failure: PRQueryRegionDestroyedDUnitTest.testPRWithRegionDestroyInOneDatastoreWithDelay
> ------------------------------------------------------------------------------------------
>                 Key: GEODE-631
>                 URL:
>             Project: Geode
>          Issue Type: Bug
>          Components: querying
>            Reporter: Darrel Schneider
>            Assignee: Jason Huynh
>              Labels: CI
> git rev 9283282c64076c5f8e599f3d47895f3c48e205e8 build #815:
> junit.framework.AssertionFailedError: Unexpected exception during query: util.TestException:
PRQueryDUnitHelper#getCacheSerializableRunnableForPRQueryAndCompareResults: Caught unexpected
query exception
> 	at com.gemstone.gemfire.cache.query.partitioned.PRQueryDUnitHelper$13.run2(
> Caused by: com.gemstone.gemfire.cache.query.RegionNotFoundException: Region not found:
> 	at com.gemstone.gemfire.cache.query.internal.CompiledRegion.evaluate(
> 	at com.gemstone.gemfire.cache.query.internal.CompiledIteratorDef.evaluateCollection(
> 	at com.gemstone.gemfire.cache.query.internal.RuntimeIterator.evaluateCollection(
> 	at com.gemstone.gemfire.cache.query.internal.CompiledIteratorDef.getRuntimeIterator(
> 	at com.gemstone.gemfire.cache.query.internal.CompiledSelect.computeDependencies(
> 	at com.gemstone.gemfire.cache.query.internal.DefaultQuery.executeUsingContext(
> 	at com.gemstone.gemfire.internal.cache.PRQueryProcessor.executeQueryOnBuckets(
> 	at com.gemstone.gemfire.internal.cache.PRQueryProcessor.executeSequentially(
> 	at com.gemstone.gemfire.internal.cache.PRQueryProcessor.executeQuery(
> 	at com.gemstone.gemfire.internal.cache.partitioned.QueryMessage.operateOnPartitionedRegion(
> 	at com.gemstone.gemfire.internal.cache.partitioned.PartitionMessage.process(
> 	at com.gemstone.gemfire.distributed.internal.DistributionMessage.scheduleAction(
> 	at com.gemstone.gemfire.distributed.internal.DistributionMessage$

This message was sent by Atlassian JIRA

View raw message