[ 
https://issues.apache.org/jira/browse/MESOS-3210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14660354#comment-14660354
 ] 

Tomás Senart commented on MESOS-3210:
-------------------------------------

I agree that this looks wrong and confusing to consumers who should not be 
impacted by internal implementation details.

> DiscoveryInfo is broken in state.json
> -------------------------------------
>
>                 Key: MESOS-3210
>                 URL: https://issues.apache.org/jira/browse/MESOS-3210
>             Project: Mesos
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.23.0
>            Reporter: Dr. Stefan Schimanski
>
> The DiscoveryInfo field of a task in state.json is broken: ports and labels 
> fields are nested once too much.
> Got:
> {code}
> "discovery" : {
>                   "name" : "docker",
>                   "labels" : {
>                      "labels" : [
>                         {
>                            "key" : "canary",
>                            "value" : "Mallorca"
>                         }
>                      ]
>                   },
>                   "visibility" : "CLUSTER",
>                   "ports" : {
>                      "ports" : [
>                         {
>                            "name" : "health",
>                            "number" : 1080,
>                            "protocol" : "http"
>                         }
>                      ]
>                   }
>                },
> {code}
> Expected:
> {code}
> "discovery" : {
>                   "name" : "docker",
>                      "labels" : [
>                         {
>                            "key" : "canary",
>                            "value" : "Mallorca"
>                         }
>                      ]
>                   "visibility" : "CLUSTER",
>                      "ports" : [
>                         {
>                            "name" : "health",
>                            "number" : 1080,
>                            "protocol" : "http"
>                         }
>                      ]
>                },
> {code}



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

Reply via email to