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

Juan Ramos commented on GEODE-7402:
-----------------------------------

[~achoudhary]: this has been fixed in Geode 1.10.0 trough GEODE-6749 already

{noformat}
gfsh>version
1.10.0

gfsh>create disk-store --name=testDiskStore --allow-force-compaction=false 
--auto-compact=false --dir=test
Member  | Status | Message
------- | ------ | --------------------------------
server1 | OK     | Created disk store testDiskStore

gfsh>export cluster-configuration --xml-file=test1.xml
cluster.xml: 
xml content exported to /temp/GEODE-7402/test1.xml

bash> cat /temp/GEODE-7402/test1.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?><cache version="1.0" 
xsi:schemaLocation="http://geode.apache.org/schema/cache 
http://geode.apache.org/schema/cache/cache-1.0.xsd 
http://geode.apache.org/schema/jdbc 
http://geode.apache.org/schema/jdbc/jdbc-1.0.xsd 
http://geode.apache.org/schema/lucene 
http://geode.apache.org/schema/lucene/lucene-1.0.xsd"; 
xmlns="http://geode.apache.org/schema/cache"; 
xmlns:lucene="http://geode.apache.org/schema/lucene"; 
xmlns:jdbc="http://geode.apache.org/schema/jdbc"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <disk-store name="testDiskStore" auto-compact="false" 
compaction-threshold="50" allow-force-compaction="false" max-oplog-size="1024" 
time-interval="1000" write-buffer-size="32768" queue-size="0" 
disk-usage-warning-percentage="90" disk-usage-critical-percentage="99">
        <disk-dirs>
            <disk-dir dir-size="2147483647">test</disk-dir>
        </disk-dirs>
    </disk-store>

gfsh>create disk-store --name=testDiskStore --allow-force-compaction=false 
--auto-compact=false --dir=test
Error: Disk store testDiskStore already exists

gfsh>export cluster-configuration --xml-file=test2.xml
cluster.xml: 
xml content exported to /temp/GEODE-7402/test2.xml

bash> cat /temp/GEODE-7402/test2.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?><cache version="1.0" 
xsi:schemaLocation="http://geode.apache.org/schema/cache 
http://geode.apache.org/schema/cache/cache-1.0.xsd 
http://geode.apache.org/schema/jdbc 
http://geode.apache.org/schema/jdbc/jdbc-1.0.xsd 
http://geode.apache.org/schema/lucene 
http://geode.apache.org/schema/lucene/lucene-1.0.xsd"; 
xmlns="http://geode.apache.org/schema/cache"; 
xmlns:lucene="http://geode.apache.org/schema/lucene"; 
xmlns:jdbc="http://geode.apache.org/schema/jdbc"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <disk-store name="testDiskStore" auto-compact="false" 
compaction-threshold="50" allow-force-compaction="false" max-oplog-size="1024" 
time-interval="1000" write-buffer-size="32768" queue-size="0" 
disk-usage-warning-percentage="90" disk-usage-critical-percentage="99">
        <disk-dirs>
            <disk-dir dir-size="2147483647">test</disk-dir>
        </disk-dirs>
    </disk-store>
{noformat}

> running create disk store multiple time resulted in duplicate entries in 
> cluster.xml
> ------------------------------------------------------------------------------------
>
>                 Key: GEODE-7402
>                 URL: https://issues.apache.org/jira/browse/GEODE-7402
>             Project: Geode
>          Issue Type: Bug
>          Components: gfsh
>            Reporter: Ashish Choudhary
>            Priority: Major
>
> # run gfsh create disk store command
>  # export cluster configuration. no duplicate entry for disk store. 
>  # execute step1 again.
>  # execute step2 again.
>  # there are duplicate entry for disk store in cluster.xml
> It should fail fast if disk store already exists.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to