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

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • None
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: