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

testCSReservationWithRootUnblocked() and testCSQueueBlocked() in TestCapacityScheduler are flaky

    XMLWordPrintableJSON

Details

    • Task
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • capacity scheduler, test

    Description

      testCSReservationWithRootUnblocked() and testCSQueueBlocked() test for the expected value of Used Resources in different queues after calling allocate() and CapacityScheduler.schedule(). 

      If CapacityScheduler.schedule() gets executed more than a second after NodeAddedSchedulerEvent was handled, then the node will be skipped from scheduling. This results in test failure as the node resources will not be allocated and so the expected Used Resource value differs.

      Attachments

        1. YARN-7943.001.patch
          2 kB
          Tarun Parimi

        Activity

          People

            Unassigned Unassigned
            tarunparimi Tarun Parimi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: