mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yan Xu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MESOS-8200) Suppressed roles are not honoured for v1 scheduler subscribe requests.
Date Thu, 16 Nov 2017 07:06:00 GMT

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

Yan Xu updated MESOS-8200:
--------------------------
    Affects Version/s: 1.4.0

> 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
>    Affects Versions: 1.4.0
>            Reporter: Alexander Rukletsov
>            Assignee: Yan Xu
>            Priority: Critical
>
> 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)

Mime
View raw message