Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-8969

AbstractYarnScheduler#getNodeTracker should return generic type to avoid type casting

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.1, 3.1.1
    • Fix Version/s: 3.0.4, 3.1.2, 3.3.0, 3.2.1, 2.9.3
    • Component/s: None
    • Labels:
      None

      Description

      Some warning problems like:

      Unchecked assignment: 'java.util.List' to 'java.util.List<org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSSchedulerNode>'. Reason: 'scheduler.getNodeTracker()' has raw type, so result of getNodesByResourceName is erased

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jiwq Wanqiang Ji
                Reporter:
                jiwq Wanqiang Ji
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: