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

AbstractYarnScheduler#getNodeTracker should return generic type to avoid type casting

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.1, 3.1.1
    • 3.0.4, 3.1.2, 3.3.0, 3.2.1, 2.9.3
    • None
    • 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

        1. YARN-8969.001.patch
          2 kB
          Wanqiang Ji

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: