You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Yan Xu (JIRA)" <ji...@apache.org> on 2016/05/12 18:07:12 UTC
[jira] [Commented] (MESOS-5279) DRF sorter add/activate doesn't
check if it's adding a duplicate entry
[ https://issues.apache.org/jira/browse/MESOS-5279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15281855#comment-15281855 ]
Yan Xu commented on MESOS-5279:
-------------------------------
So in the reviews activate and add are treated differently:
- {{activate}} is made idempotent, if you activate the client which is already active, it's OK to say this is a no-op.
- {{add}} doesn't allow adding a client already in the sorter because it has another argument {{weight}} which could be different.
> DRF sorter add/activate doesn't check if it's adding a duplicate entry
> ----------------------------------------------------------------------
>
> Key: MESOS-5279
> URL: https://issues.apache.org/jira/browse/MESOS-5279
> Project: Mesos
> Issue Type: Bug
> Components: allocation
> Reporter: Yan Xu
> Assignee: Yan Xu
>
> Currently the sorter relies on the caller to make sure the sorter is in a good state when add/activate is called. It's not defensive against caller mistakes as it should be. It's never an acceptable result if duplicates are added to {{DRFSorter::clients}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)