You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2023/06/30 09:55:00 UTC

[jira] [Created] (HDDS-8966) Replace test-specific unknown value with real one

Attila Doroszlai created HDDS-8966:
--------------------------------------

             Summary: Replace test-specific unknown value with real one
                 Key: HDDS-8966
                 URL: https://issues.apache.org/jira/browse/HDDS-8966
             Project: Apache Ozone
          Issue Type: Improvement
          Components: Ozone Manager
    Affects Versions: 1.4.0
            Reporter: Attila Doroszlai
            Assignee: Attila Doroszlai


Protobuf guide [recommends|https://protobuf.dev/programming-guides/dos-donts/#do-include-an-unspecified-value-in-an-enum]:

bq. Enums should include a default FOO_UNSPECIFIED value as the first value in the declaration.

Rationale:

bq. 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org