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

For handle(SchedulerEvent) in FifoScheduler and CapacityScheduler, SchedulerEvent should get checked (instanceof) for appropriate type before casting

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: scheduler
    • Labels:

      Description

      As following: http://wiki.apache.org/hadoop/CodeReviewChecklist, we should always check appropriate type before casting.
      handle(SchedulerEvent) in FifoScheduler and CapacityScheduler didn't check so far (no bug there now) but should be improved as FairScheduler.

        Attachments

          Activity

            People

            • Assignee:
              zxu zhihai xu
              Reporter:
              djp Junping Du
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: