Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-8906

`UriDiskProfileAdaptor` fails to update profile selectors.

    XMLWordPrintableJSON

Details

    Description

      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

      Unable to find source-code formatter for language: cxx. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
        // 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;
        }
      

      However, this prevents the profile selector from being updated, which is not the desired behavior.

      Attachments

        Activity

          People

            chhsia0 Chun-Hung Hsiao
            chhsia0 Chun-Hung Hsiao
            Jie Yu Jie Yu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: