Darrel Schneider created GEODE-1427:
---------------------------------------

             Summary: 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


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