You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Barry Oglesby (JIRA)" <ji...@apache.org> on 2018/12/14 20:26:00 UTC

[jira] [Created] (GEODE-6205) The cluster configuration service create disk-store command saves the relative path name rather than the absolute one in the disk-dir

Barry Oglesby created GEODE-6205:
------------------------------------

             Summary: The cluster configuration service create disk-store command saves the relative path name rather than the absolute one in the disk-dir
                 Key: GEODE-6205
                 URL: https://issues.apache.org/jira/browse/GEODE-6205
             Project: Geode
          Issue Type: Bug
          Components: gfsh
            Reporter: Barry Oglesby


This command:
{noformat}
create disk-store --name=data_store --dir=/path/to/geode_data`
{noformat}
Creates this disk-store configuration:
{noformat}
<disk-store ...>
 <disk-dirs>
 <disk-dir dir-size="2147483647">geode_data</disk-dir>
 </disk-dirs>
</disk-store>
{noformat}
Only the relative file name is saved.

The CreateDiskStoreCommand createDiskStoreType sets the relative path by calling getName:
{noformat}
 for (int i = 0; i < diskStoreAttributes.getDiskDirs().length; i++) {
 DiskDirType diskDir = new DiskDirType();
-> diskDir.setContent(diskStoreAttributes.getDiskDirs()[i].getName());
 diskDir.setDirSize(Integer.toString(diskStoreAttributes.getDiskDirSizes()[i]));
 diskDirs.add(diskDir);
 }
{noformat}
Instead if it called getAbsolutePath, the disk-store configuration would be:
{noformat}
<disk-store ...>
 <disk-dirs>
 <disk-dir dir-size="2147483647">/path/to/gemfire_data</disk-dir>
 </disk-dirs>
</disk-store>
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)