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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • scheduler

    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

        1. yarn-1569.patch
          13 kB
          Zhihai Xu

        Activity

          People

            zxu Zhihai Xu
            junping_du Junping Du
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: