geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darrel Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (GEODE-1427) GemFireCacheImplTest leaving static set causing later unit tests to fail
Date Sat, 21 May 2016 00:04:12 GMT

     [ https://issues.apache.org/jira/browse/GEODE-1427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Darrel Schneider reassigned GEODE-1427:
---------------------------------------

    Assignee: Darrel Schneider

> 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)

Mime
View raw message