[ https://issues.apache.org/jira/browse/GEODE-6205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Barry Oglesby reassigned GEODE-6205: ------------------------------------ Assignee: Barry Oglesby > 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 > > 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)