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

Update the JSON <=> protobuf message conversion for map support

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • None
    • None
    • Mesosphere Sprint 76
    • 3

    Description

      Map is a feature starting from proto2 syntax, but it can only be compiled with proto3 compiler, see the following discussion for details:
      https://groups.google.com/forum/#&#33;topic/protobuf/p4WxcplrlA4
      We have already upgraded the protobuf compiler from 2.6.1 to 3.3.0 in MESOS-7228, however, to use protobuf map in Mesos code, we also need to add the protobuf map support to the code in Mesos for converting protobuf message to JSON object and parsing JSON object as protobuf message, that is what we plan to handle in this ticket.

      With map support added, the following field in the protobuf message can be replaced by the native protobuf map field, and we do not have to manually parse it anymore.
      https://github.com/apache/mesos/blob/1.3.0/include/mesos/docker/v1.proto#L68

      Attachments

        Issue Links

          Activity

            People

              qianzhang Qian Zhang
              qianzhang Qian Zhang
              Benjamin Mahler Benjamin Mahler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: