[ 
https://issues.apache.org/jira/browse/MESOS-3409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joseph Wu updated MESOS-3409:
-----------------------------
    Assignee: Gilbert Song  (was: Joseph Wu)

> 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: Gilbert Song
>            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)

Reply via email to