Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-810

Add "UNRECOGNIZED" value 0 for all protobuf enums

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Private Beta
    • None
    • cfile, client, tserver
    • None

    Description

      If you use an old build and try to deserialize a PB written by a new build, and the PB uses an enum value that isn't valid in your old build, PB defaults to setting it to the first-listed protobuf value.

      We should ensure that the first value, then, is UNRECOGNIZED or UNKNOWN. Otherwise, we risk silently thinking we have valid data which makes the error much harder to debug.

      Attachments

        Activity

          People

            danburkert Dan Burkert
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: