Chun-Hung Hsiao created MESOS-8906:
--------------------------------------

             Summary: `UriDiskProfileAdaptor` fails to update profile selectors.
                 Key: MESOS-8906
                 URL: https://issues.apache.org/jira/browse/MESOS-8906
             Project: Mesos
          Issue Type: Bug
          Components: storage
    Affects Versions: 1.5.0, 1.6.0
            Reporter: Chun-Hung Hsiao
            Assignee: Chun-Hung Hsiao


The {{UriDiskProfileAdaptor}} ignores the polled profile matrix if the polled 
one has the same size as the current one: 
https://github.com/apache/mesos/blob/1.5.x/src/resource_provider/storage/uri_disk_profile.cpp#L282-L286
{code:cxx}
  // Profiles can only be added, so if the parsed data is the same size,
  // nothing has changed and no notifications need to be sent.
  if (parsed.profile_matrix().size() <= profileMatrix.size()) {
    return;
  }
{code}
However, this prevents the profile selector from being updated, which is not 
the desired behavior.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to