You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Joseph Wu (JIRA)" <ji...@apache.org> on 2015/09/10 20:22:45 UTC

[jira] [Created] (MESOS-3409) Refactor the plain JSON parsing in the docker containerizer

Joseph Wu created MESOS-3409:
--------------------------------

             Summary: Refactor the plain JSON parsing in the docker containerizer
                 Key: MESOS-3409
                 URL: https://issues.apache.org/jira/browse/MESOS-3409
             Project: Mesos
          Issue Type: Improvement
          Components: docker
            Reporter: Joseph Wu
            Assignee: Joseph Wu
            Priority: Minor


Two functions in the Docker-related code take a string and parse it to JSON:
* {{Docker::Container::create}} in {{src/docker/docker.cpp}}
* {{Token::create}} in {{src/slave/containerizer/provisioners/docker/token_manager.cpp}}

This JSON is then validated (lots of if-elses) and used via the {{JSON::Value}} accessors.  We could instead use a protobuf and the related Stout JSON->Protobuf conversion function.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)