You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Anthony Baker (JIRA)" <ji...@apache.org> on 2019/03/29 21:57:00 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=16805477#comment-16805477 ] 

Anthony Baker commented on GEODE-747:
-------------------------------------

Currently gfsh does not support creating sub-regions.  I don't think there's a good case for adding that feature.  In general I would recommend not using subregions anyway.

> 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
>            Priority: Major
>
> 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
(v7.6.3#76005)