adoroszlai opened a new pull request, #5010:
URL: https://github.com/apache/ozone/pull/5010

   ## What changes were proposed in this pull request?
   
   Replace `TestUnknownCommand` with a real catch-all type: `UnknownCommand = 
0`.
   
   Protobuf guide 
[recommends](https://protobuf.dev/programming-guides/dos-donts/#do-include-an-unspecified-value-in-an-enum):
   
   > Enums should include a default FOO_UNSPECIFIED value as the first value in 
the declaration.
   
   Rationale:
   
   > When new values are added to a proto2 enum, old clients will see the field 
as unset and the getter will return the default value or the first-declared 
value if no default exists.
   
   https://issues.apache.org/jira/browse/HDDS-8966
   
   ## How was this patch tested?
   
   CI:
   https://github.com/adoroszlai/hadoop-ozone/actions/runs/5421634940


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to