Jason Huynh created GEODE-8281:
----------------------------------

             Summary: GFSH configure PDX overrides previously set values
                 Key: GEODE-8281
                 URL: https://issues.apache.org/jira/browse/GEODE-8281
             Project: Geode
          Issue Type: New Feature
          Components: gfsh
            Reporter: Jason Huynh


When configuring pdx using gfsh, if I configure the pdx disk store and then the 
read-serialized on a different command, it overrides the persistent value to 
false.
{code:java}
gfsh>configure pdx --disk-store=new-diskstore
 read-serialized = false
 ignore-unread-fields = false
 persistent = true
 disk-store = new-diskstore
 Cluster configuration for group 'cluster' is updated.

gfsh>configure pdx --read-serialized=true
 read-serialized = true
 ignore-unread-fields = false
 persistent = false
 Cluster configuration for group 'cluster' is updated.{code}
 

The documentation for this feature also shows the same type of behavior (order 
of operations has been flipped)
gfsh>configure pdx --read-serialized=true
persistent = false
read-serialized = true
ignore-unread-fields = false
gfsh>configure pdx --disk-store=/home/username/server4/DEFAULT.drf
persistent = true
disk-store = /home/username/server4/DEFAULT.drf
read-serialized = false
ignore-unread-fields = false
Docs for Configure Pdx should probably also be updated when this is fixed and 
also not point to a drf file as the directory.

 

 

[~nnag] notes that it looks like it has to do with the following 
unspecifiedDefaultValue options
@CliOption(key = CliStrings.CONFIGURE_PDX__READ__SERIALIZED,
          unspecifiedDefaultValue = "false",
 

 



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

Reply via email to