John Blum created GEODE-7394:
--------------------------------

             Summary: Gfsh `configure pdx` command is non-intuitive and 
currently has a bad user experience
                 Key: GEODE-7394
                 URL: https://issues.apache.org/jira/browse/GEODE-7394
             Project: Geode
          Issue Type: Bug
          Components: serialization
            Reporter: John Blum


The _Gfsh_ {{configure pdx}} command does *not* register a {{PdxSerializer}} 
(e.g. {{ReflectionBasedAutoSerializer}}, or otherwise) unless the 
{{--auto-serializable-classes}} option is explicitly specified.  Without a 
{{PdxSerializer}} the command essentially serves no purpose nor has any effect. 
 Effectively, the command is useless.

For example, doing something like `gfsh> configure pdx --read-serialized=false` 
or `gfsh> configure pdx --ignore-unread-fields` by itself is *pointless* since 
ultimately there would be no `PdxSerializer` registered in this case.

_Gfsh_ should minimally register a `PdxSerializer` anytime the `configure pdx` 
command is used regardless of the options provided, especially if it returns 
successfully without incident.  For instance, it could register the 
`ReflectionBaseAutoSerializer` with the REGEX {{.*}} (de/serializing all types, 
regardless of whether that is optimal or not).

Alternatively, if we decide not to register the 
{{ReflectionBasedAutoSerialier}} with a generic REGEX (e.g. {{.*}}), then we 
should _fail-fast_ and the command should report that 
{{--[portable-]-auto-serializable-classes}} is required!



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

Reply via email to