You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Owen Nichols (JIRA)" <ji...@apache.org> on 2019/04/24 22:24:07 UTC
[jira] [Closed] (GEODE-6205) The cluster configuration service
create disk-store command saves the relative path name rather than the
absolute one in the disk-dir
[ https://issues.apache.org/jira/browse/GEODE-6205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Owen Nichols closed GEODE-6205.
-------------------------------
> 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
> Assignee: Barry Oglesby
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.9.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> 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/geode_data</disk-dir>
> </disk-dirs>
> </disk-store>
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)