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

[jira] [Assigned] (MESOS-8200) Suppressed roles are not honoured for v1 scheduler subscribe requests.

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

James Peach reassigned MESOS-8200:
----------------------------------

    Assignee: James Peach

> Suppressed roles are not honoured for v1 scheduler subscribe requests.
> ----------------------------------------------------------------------
>
>                 Key: MESOS-8200
>                 URL: https://issues.apache.org/jira/browse/MESOS-8200
>             Project: Mesos
>          Issue Type: Bug
>          Components: scheduler api, scheduler driver
>            Reporter: Alexander Rukletsov
>            Assignee: James Peach
>
> When triaging MESOS-7996 I've found out that {{Call.subscribe.suppressed_roles}} field is empty when the master processes the request from a v1 HTTP scheduler. More precisely, [this conversion|https://github.com/apache/mesos/blob/1132e1ddafa6a1a9bc8aa966bd01d7b35c7682d9/src/master/http.cpp#L969] wipes the field. This is likely because this conversion relies on a general [protobuf conversion utility|https://github.com/apache/mesos/blob/1132e1ddafa6a1a9bc8aa966bd01d7b35c7682d9/src/internal/devolve.cpp#L28-L50], which fails to copy {{suppressed_roles}} because they have different tags, compare [v0|https://github.com/apache/mesos/blob/1132e1ddafa6a1a9bc8aa966bd01d7b35c7682d9/include/mesos/scheduler/scheduler.proto#L271] and [v1|https://github.com/apache/mesos/blob/1132e1ddafa6a1a9bc8aa966bd01d7b35c7682d9/include/mesos/v1/scheduler/scheduler.proto#L258].



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)