You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/01/10 17:20:58 UTC

[jira] [Commented] (GEODE-2278) Creating a member without a lucene index before a member with a lucene index causes an NPE

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

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

Commit 262e6ee1c13df60c38ec373247a4b212f40440f7 in geode's branch refs/heads/develop from [~upthewaterspout]
[ https://git-wip-us.apache.org/repos/asf?p=geode.git;h=262e6ee ]

GEODE-2278: Fix an NPE with inconsistent lucene indexes

If a member without a lucene index is created first, we should throw a
reasonable error rather than an NPE.


> Creating a member without a lucene index before a member with a lucene index causes an NPE
> ------------------------------------------------------------------------------------------
>
>                 Key: GEODE-2278
>                 URL: https://issues.apache.org/jira/browse/GEODE-2278
>             Project: Geode
>          Issue Type: Bug
>          Components: lucene
>            Reporter: Dan Smith
>            Assignee: Dan Smith
>
> I hit this when I misconfigured my system and had a member without a lucene index started before I started a member with a lucene index
> {noformat}
> ava.lang.NullPointerException
> 	at Remote Member '172.16.115.241(accessorgemfire1_dsmith-virtual_80275:80275)<ec><v2>:1026' in org.apache.geode.internal.cache.LocalRegion.getCacheServiceProfile(LocalRegion.java:10696)
> 	at Remote Member '172.16.115.241(accessorgemfire1_dsmith-virtual_80275:80275)<ec><v2>:1026' in org.apache.geode.internal.cache.CreateRegionProcessor$CreateRegionMessage.checkCompatibility(CreateRegionProcessor.java:617)
> 	at Remote Member '172.16.115.241(accessorgemfire1_dsmith-virtual_80275:80275)<ec><v2>:1026' in org.apache.geode.internal.cache.CreateRegionProcessor$CreateRegionMessage.handleCacheDistributionAdvisee(CreateRegionProcessor.java:471)
> 	at Remote Member '172.16.115.241(accessorgemfire1_dsmith-virtual_80275:80275)<ec><v2>:1026' in org.apache.geode.internal.cache.CreateRegionProcessor$CreateRegionMessage.process(CreateRegionProcessor.java:379)
> 	at Remote Member '172.16.115.241(accessorgemfire1_dsmith-virtual_80275:80275)<ec><v2>:1026' in org.apache.geode.distributed.internal.DistributionMessage.scheduleAction(DistributionMessage.java:376)
> 	at Remote Member '172.16.115.241(accessorgemfire1_dsmith-virtual_80275:80275)<ec><v2>:1026' in org.apache.geode.distributed.internal.DistributionMessage$1.run(DistributionMessage.java:442)
> 	at Remote Member '172.16.115.241(accessorgemfire1_dsmith-virtual_80275:80275)<ec><v2>:1026' in java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at Remote Member '172.16.115.241(accessorgemfire1_dsmith-virtual_80275:80275)<ec><v2>:1026' in java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at Remote Member '172.16.115.241(accessorgemfire1_dsmith-virtual_80275:80275)<ec><v2>:1026' in org.apache.geode.distributed.internal.DistributionManager.runUntilShutdown(DistributionManager.java:621)
> 	at Remote Member '172.16.115.241(accessorgemfire1_dsmith-virtual_80275:80275)<ec><v2>:1026' in org.apache.geode.distributed.internal.DistributionManager$5$1.run(DistributionManager.java:917)
> 	at Remote Member '172.16.115.241(accessorgemfire1_dsmith-virtual_80275:80275)<ec><v2>:1026' in java.lang.Thread.run(Thread.java:745)
> 	at org.apache.geode.distributed.internal.ReplyException.handleAsUnexpected(ReplyException.java:85)
> 	at org.apache.geode.internal.cache.CreateRegionProcessor.initializeRegion(CreateRegionProcessor.java:136)
> 	at org.apache.geode.internal.cache.PartitionedRegion.initPRInternals(PartitionedRegion.java:899)
> 	at org.apache.geode.internal.cache.PartitionedRegion.initialize(PartitionedRegion.java:1058)
> 	at org.apache.geode.internal.cache.GemFireCacheImpl.createVMRegion(GemFireCacheImpl.java:3299)
> 	at org.apache.geode.internal.cache.GemFireCacheImpl.basicCreateRegion(GemFireCacheImpl.java:3194)
> 	at org.apache.geode.internal.cache.GemFireCacheImpl.createRegion(GemFireCacheImpl.java:3182)
> 	at hydra.RegionHelper.createRegion(RegionHelper.java:109)
> 	at hydra.RegionHelper.createRegion(RegionHelper.java:79)
> 	at hydra.RegionHelper.createRegion(RegionHelper.java:68)
> 	at hydra.RegionHelper.createRegion(RegionHelper.java:50)
> 	at util.CacheUtil.createRegion(CacheUtil.java:350)
> 	at parReg.ParRegTest.HA_reinitializeRegion(ParRegTest.java:775)
> 	at parReg.ParRegTest.HydraTask_HA_reinitializeDataStore(ParRegTest.java:544)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at hydra.MethExecutor.execute(MethExecutor.java:182)
> 	at hydra.MethExecutor.execute(MethExecutor.java:150)
> 	at hydra.TestTask.execute(TestTask.java:192)
> 	at hydra.RemoteTestModule$1.run(RemoteTestModule.java:2
> {noformat}



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