Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-2647

Flaky test TestUpdateNodeCapacity

    XMLWordPrintableJSON

Details

    Description

      Same as we saw in YUNIKORN-2573 the single node update test might fail:

      --- FAIL: TestUpdateNodeCapacity (0.03s)
          operation_test.go:446: Expected partition resource map[memory:100000000 vcore:20000], doesn't match with actual partition resource map[memory:100000000 vcore:20000]

      We calculate the delta resources when updating node capacity with that delta we update resources in partition.

      The test would fail with following order same as for multiple nodes

      node.SetCapacity() -> waitForAvailableNodeResource() ->  partitionInfo.GetTotalPartitionResource()  -> partition.updatePartitionResource()

      Attachments

        Issue Links

          Activity

            People

              Tseng Hsi-Huang Tseng Hsi-Huang
              wilfreds Wilfred Spiegelenburg
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: