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

Michael Park commented on MESOS-4582:
-------------------------------------

{noformat}
commit 195464c3f1f82b977d765218471350ac9bc5d2f8
Author: Michael Park <[email protected]>
Date:   Tue Feb 16 15:02:16 2016 -0800

    Removed the duplicate "active" field in json schema of `Framework`.

    The new `jsonify` library is a writer-based approach, and does not keep
    track of the fields that have been written out so far. The previous
    version of `summarize(framework)` and `model(framework)` had a duplicate
    `"active"` field which was de-duplicated since they simply get inserted
    to a `std::map`, overriding the previous value.

    In the `jsonify` case, this pattern results in duplicate key in the JSON
    output. Although the presence of duplicate keys is technically not
    __invalid__ according to the JSON specification, some JSON libraries
    disallow them. As such, we should generate JSON outputs without
    duplicate keys.

    Review: https://reviews.apache.org/r/43159/
{noformat}

> state.json serving duplicate "active" fields
> --------------------------------------------
>
>                 Key: MESOS-4582
>                 URL: https://issues.apache.org/jira/browse/MESOS-4582
>             Project: Mesos
>          Issue Type: Bug
>    Affects Versions: 0.27.0
>            Reporter: Michael Gummelt
>            Assignee: Michael Park
>            Priority: Blocker
>             Fix For: 0.27.1
>
>         Attachments: error.json
>
>
> state.json is serving duplicate "active" fields in frameworks.  See the 
> framework "47df96c2-3f85-4bc5-b781-709b2c30c752-0000" In the attached file



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

Reply via email to