Swapnil Bawaskar created GEODE-2505: ---------------------------------------
Summary: create region command should verify region attributes Key: GEODE-2505 URL: https://issues.apache.org/jira/browse/GEODE-2505 Project: Geode Issue Type: Improvement Components: gfsh Reporter: Swapnil Bawaskar The gfsh {{create region}} command tries to be idempotent. If I try to create the same region twice I get the below message: {noformat} Member | Status ------ | ---------------------------------------------- serv1 | Skipping "serv1". Region "foo" already exists. {noformat} However, when a user is using a gfsh script to configure a cluster, and inadvertently changes the region attributes the {{create region}} command will still succeed. {noformat} gfsh>create region --name=foo --type=REPLICATE Member | Status ------ | -------------------------------- serv1 | Region "/foo" created on "serv1" gfsh>create region --name=foo --type=PARTITION Member | Status ------ | ---------------------------------------------- serv1 | Skipping "serv1". Region "foo" already exists. {noformat} We should verify the region attributes, and if the attributes don't match we should log an error asking the user to export the data from the existing region, destroy the region, create the region again with new attributes and import the data. -- This message was sent by Atlassian JIRA (v6.3.15#6346)