geode-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/GEODE-631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15109654#comment-15109654
] 

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: https://issues.apache.org/jira/browse/GEODE-631
>             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(PRQueryDUnitHelper.java:758)
> 	
> Caused by: com.gemstone.gemfire.cache.query.RegionNotFoundException: Region not found:
 /Portfolios
> 	at com.gemstone.gemfire.cache.query.internal.CompiledRegion.evaluate(CompiledRegion.java:88)
> 	at com.gemstone.gemfire.cache.query.internal.CompiledIteratorDef.evaluateCollection(CompiledIteratorDef.java:164)
> 	at com.gemstone.gemfire.cache.query.internal.RuntimeIterator.evaluateCollection(RuntimeIterator.java:111)
> 	at com.gemstone.gemfire.cache.query.internal.CompiledIteratorDef.getRuntimeIterator(CompiledIteratorDef.java:108)
> 	at com.gemstone.gemfire.cache.query.internal.CompiledSelect.computeDependencies(CompiledSelect.java:185)
> 	at com.gemstone.gemfire.cache.query.internal.DefaultQuery.executeUsingContext(DefaultQuery.java:568)
> 	at com.gemstone.gemfire.internal.cache.PRQueryProcessor.executeQueryOnBuckets(PRQueryProcessor.java:398)
> 	at com.gemstone.gemfire.internal.cache.PRQueryProcessor.executeSequentially(PRQueryProcessor.java:361)
> 	at com.gemstone.gemfire.internal.cache.PRQueryProcessor.executeQuery(PRQueryProcessor.java:147)
> 	at com.gemstone.gemfire.internal.cache.partitioned.QueryMessage.operateOnPartitionedRegion(QueryMessage.java:199)
> 	at com.gemstone.gemfire.internal.cache.partitioned.PartitionMessage.process(PartitionMessage.java:323)
> 	at com.gemstone.gemfire.distributed.internal.DistributionMessage.scheduleAction(DistributionMessage.java:380)
> 	at com.gemstone.gemfire.distributed.internal.DistributionMessage$1.run(DistributionMessage.java:451)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message