You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by "Kirk Lund (JIRA)" <ji...@apache.org> on 2016/12/13 19:16:58 UTC
[jira] [Commented] (GEODE-747) Not able to create sub-region from
gfsh in the cluster configuration
[ https://issues.apache.org/jira/browse/GEODE-747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15745990#comment-15745990 ]
Kirk Lund commented on GEODE-747:
---------------------------------
This one is potentially contentious. The product management team that defined and released GFSH wanted two things: 1) to leave out things like sub-regions that they didn't want to encourage users to to use, and 2) to eventually deprecated and remove sub-regions altogether.
> Not able to create sub-region from gfsh in the cluster configuration
> --------------------------------------------------------------------
>
> Key: GEODE-747
> URL: https://issues.apache.org/jira/browse/GEODE-747
> Project: Geode
> Issue Type: Bug
> Components: configuration, gfsh
> Reporter: Jens Deppe
>
> Received this from Gemfire forum
> started a brand new locator and server, then try to create the region as following:
> {noformat}
> create region --name=/a --type=REPLICATE_PERSISTENT
> create region --name=/a/b --type=REPLICATE_PERSISTENT
> {noformat}
> suppose it will create the parent / child regions, where /b is a sub-region nested in /a.
> But once it's created, I found in
> $GemFire Work Dir$\locator1\cluster_config\cluster\cluster.xml
> They are two different regions without any parent-child relationship.
> {noformat}
> <?xml version="1.0" encoding="UTF-8"?>
> <cache xsi:schemaLocation="http://schema.pivotal.io/gemfire/cache http://schema.pivotal.io/gemfire/cache/cache-8.1.xsd" lock-lease="120" lock-timeout="60" search-timeout="300" is-server="false" copy-on-read="false" version="8.1" xmlns="http://schema.pivotal.io/gemfire/cache" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <region name="a">
> <region-attributes scope="distributed-ack" data-policy="persistent-replicate"/>
> </region>
> <region name="b">
> <region-attributes scope="distributed-ack" data-policy="persistent-replicate"/>
> </region>
> </cache>
> {noformat}
> also
> When I execute
> {noformat}
> create region --name=/b --type=PARTITION_PERSISTENT
> {noformat}
> it works
> List regions showing below but no change in cluster.xml
> {noformat}
> gfsh>list regions
> List of regions
> a
> a/b
> b
> {noformat}
> Stop and start server getting below value
> {noformat}
> gfsh>stop server --name=cache1
> gfsh>start server --name=cache1 --use-cluster-configuration
> gfsh>list regions
> List of regions
> a
> b
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)