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

ASF subversion and git services commented on GEODE-1427:
--------------------------------------------------------

Commit ea19e3caeccbc01f61acd6d84734d8c136ee52a5 in incubator-geode's branch 
refs/heads/develop from [~dschneider]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=ea19e3c ]

GEODE-1427: change test to close the cache


> GemFireCacheImplTest leaving static set causing later unit tests to fail
> ------------------------------------------------------------------------
>
>                 Key: GEODE-1427
>                 URL: https://issues.apache.org/jira/browse/GEODE-1427
>             Project: Geode
>          Issue Type: Bug
>          Components: regions
>            Reporter: Darrel Schneider
>            Assignee: Darrel Schneider
>
> The new GemFireCacheImplTest was finishing with the static 
> GemFireCacleImpl.instance set to the GemFireCacheImpl it was testing.
> Depending on the order tests are run in this can cause down stream unit tests 
> to fail with stacks like this:
> java.lang.NullPointerException
>       at 
> com.gemstone.gemfire.internal.cache.TXManagerImpl.isDistributed(TXManagerImpl.java:1504)
>       at 
> com.gemstone.gemfire.internal.cache.partitioned.PartitionMessage.setIfTransactionDistributed(PartitionMessage.java:842)
>       at 
> com.gemstone.gemfire.internal.cache.partitioned.PartitionMessage.<init>(PartitionMessage.java:142)
>       at 
> com.gemstone.gemfire.internal.cache.partitioned.StreamingPartitionOperation$StreamingPartitionMessage.<init>(StreamingPartitionOperation.java:332)
>       at 
> com.gemstone.gemfire.internal.cache.partitioned.QueryMessage.<init>(QueryMessage.java:85)
>       at 
> com.gemstone.gemfire.internal.cache.PartitionedRegionQueryEvaluator.createRequestMessage(PartitionedRegionQueryEvaluator.java:168)
>       at 
> com.gemstone.gemfire.internal.cache.PartitionedRegionQueryEvaluator.executeQueryOnRemoteAndLocalNodes(PartitionedRegionQueryEvaluator.java:326)
>       at 
> com.gemstone.gemfire.internal.cache.PartitionedRegionQueryEvaluator.queryBuckets(PartitionedRegionQueryEvaluator.java:471)
>       at 
> com.gemstone.gemfire.internal.cache.PartitionedRegionQueryEvaluatorTest.testLocalQueryReturnsResultsToPartitionedQueryEvaluator(PartitionedRegionQueryEvaluatorTest.java:114)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)



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

Reply via email to