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

Should remove redundant check

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None

    Description

      In functions: HierarchicalAllocatorProcess<RoleSorter, FrameworkSorter>::initialize() and HierarchicalAllocatorProcess<RoleSorter, FrameworkSorter>::allocate(), it does not need to check the roleSorter->count() , because the role * always be added to roleSorter.

      So suggest to remove the following lines from initialize() and allocate() functions:

      if (roleSorter>count() == 0)

      { - LOG(ERROR) << "No roles specified, cannot allocate resources!"; - return; -}

      Attachments

        Activity

          People

            JamesYongQiaoWang James Wang
            JamesYongQiaoWang James Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: