[
https://issues.apache.org/jira/browse/GEODE-6665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16821357#comment-16821357
]
ASF subversion and git services commented on GEODE-6665:
--------------------------------------------------------
Commit cee84bbc53c707b2ca13ca664fb3087fec1c71ed in geode's branch
refs/heads/develop from agingade
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=cee84bb ]
GEODE-6665: Avoid creating regions on Locator (#3480)
* GEODE-6665: Avoid creating regions on Locator
> Session modules "BootstrappingFunction" tries to create regions on locators
> ---------------------------------------------------------------------------
>
> Key: GEODE-6665
> URL: https://issues.apache.org/jira/browse/GEODE-6665
> Project: Geode
> Issue Type: Bug
> Components: http session
> Affects Versions: 1.7.0
> Reporter: Anilkumar Gingade
> Assignee: Anilkumar Gingade
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> {color:#172b4d}Session modules bootstrap function executes the same on all
> members as they join, including locators. This can cause an exception like
> the following as it tries to create regions on a locator:{color}
> {color:#172b4d}{{tid=0x16] Caught unexpected exception:
> org.apache.geode.cache.execute.FunctionException:
> java.lang.IllegalStateException: Regions can not be created in a locator. at
> org.apache.geode.internal.cache.execute.FunctionStreamingResultCollector.getResult(FunctionStreamingResultCollector.java:228)
> at
> org.apache.geode.modules.util.BootstrappingFunction.bootstrapMember(BootstrappingFunction.java:139)
> at
> org.apache.geode.modules.util.BootstrappingFunction.memberJoined(BootstrappingFunction.java:192)
> at
> org.apache.geode.distributed.internal.ClusterDistributionManager$MemberJoinedEvent.handleEvent(ClusterDistributionManager.java:3540)
> at
> org.apache.geode.distributed.internal.ClusterDistributionManager$MemberEvent.handleEvent(ClusterDistributionManager.java:3493)
> at
> org.apache.geode.distributed.internal.ClusterDistributionManager$MemberEvent.handleEvent(ClusterDistributionManager.java:3482)
> at
> org.apache.geode.distributed.internal.ClusterDistributionManager.handleMemberEvent(ClusterDistributionManager.java:2011)
> at
> org.apache.geode.distributed.internal.ClusterDistributionManager.access$800(ClusterDistributionManager.java:109)
> at
> org.apache.geode.distributed.internal.ClusterDistributionManager$MemberEventInvoker.run(ClusterDistributionManager.java:2043)
> at java.lang.Thread.run(Thread.java:748) Caused by:
> java.lang.IllegalStateException: Regions can not be created in a locator. at
> org.apache.geode.internal.cache.GemFireCacheImpl.createVMRegion(GemFireCacheImpl.java:2970)
> at
> org.apache.geode.modules.util.CreateRegionFunction.createRegionConfigurationMetadataRegion(CreateRegionFunction.java:226)
> at
> org.apache.geode.modules.util.CreateRegionFunction.<init>(CreateRegionFunction.java:66)
> at
> org.apache.geode.modules.util.BootstrappingFunction.registerFunctions(BootstrappingFunction.java:111)
> at
> org.apache.geode.modules.util.BootstrappingFunction.execute(BootstrappingFunction.java:62)
> at
> org.apache.geode.internal.cache.MemberFunctionStreamingMessage.process(MemberFunctionStreamingMessage.java:193)
> at
> org.apache.geode.distributed.internal.DistributionMessage.scheduleAction(DistributionMessage.java:367)
> at
> org.apache.geode.distributed.internal.DistributionMessage$1.run(DistributionMessage.java:432)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at
> org.apache.geode.distributed.internal.ClusterDistributionManager.runUntilShutdown(ClusterDistributionManager.java:949)
> at
> org.apache.geode.distributed.internal.ClusterDistributionManager.doFunctionExecutionThread(ClusterDistributionManager.java:803)
> at
> org.apache.geode.internal.logging.LoggingThreadFactory.lambda$newThread$0(LoggingThreadFactory.java:121)
> ... 1 more}}{color}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)