Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-2492 (Clone of YARN-796) Allow for (admin) labels on nodes and resource-requests
  3. YARN-2757

potential NPE in checkNodeLabelExpression of SchedulerUtils for nodeLabels.

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      pontential NPE in checkNodeLabelExpression of SchedulerUtils for nodeLabels.
      since we check the nodeLabels null at

              if (!str.trim().isEmpty()
                  && (nodeLabels == null || !nodeLabels.contains(str.trim()))) {
                return false;
              }
      

      We should also check nodeLabels null at

            if (!nodeLabels.isEmpty()) {
              return false;
            }
      

        Attachments

        1. YARN-2757.000.patch
          2 kB
          Zhihai Xu

          Activity

            People

            • Assignee:
              zxu Zhihai Xu
              Reporter:
              zxu Zhihai Xu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: