Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-7674

Update the generic Protobuf to JSON facility to not output deprecated fields.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.2, 1.4.0
    • stout
    • None

    Description

      The current generic Protobuf to JSON conversion logic in stout/protobuf.hpp prints out fields even if they are deprecated. It would be useful to not print deprecated fields so that the user is not confused as to why they're seeing it.

      In the context of reservation refinement, the Resource.role field is printed even if it's not set, because it's an optional field with a default value. For now, we've added a terrible hack to avoid having to be printed. It would be much better to update the generic Protobuf to JSON code to not print deprecated fields, and we can remove this hack.

      Attachments

        Activity

          People

            mcypark Michael Park
            mcypark Michael Park
            Neil Conway Neil Conway
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: