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

Test fails: TestCalculateAbsUsedCapacity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.3.0
    • None
    • core - common

    Description

      Running tool: /usr/local/go/bin/go test -timeout 30s -run ^TestCalculateAbsUsedCapacity$ github.com/apache/yunikorn-core/pkg/common/resources

      2023-08-03T00:09:58.470-0700 WARN core.resources resources/resources.go:958 Absolute resource value result wrapped or overflow {"resource": "memory", "capacity": 10, "usage": -9223372036854775808}
      github.com/apache/yunikorn-core/pkg/common/resources.CalculateAbsUsedCapacity
      /Users/mitdesai/workspace/apache/yunikorn/yunikorn-core/pkg/common/resources/resources.go:958
      github.com/apache/yunikorn-core/pkg/common/resources.TestCalculateAbsUsedCapacity
      /Users/mitdesai/workspace/apache/yunikorn/yunikorn-core/pkg/common/resources/resources_test.go:1524
      testing.tRunner
      /usr/local/go/src/testing/testing.go:1576
      2023-08-03T00:09:58.470-0700 WARN core.resources resources/resources.go:950 Higher usage than max capacity {"resource": "memory", "capacity": 0, "usage": 1024}
      github.com/apache/yunikorn-core/pkg/common/resources.CalculateAbsUsedCapacity
      /Users/mitdesai/workspace/apache/yunikorn/yunikorn-core/pkg/common/resources/resources.go:950
      github.com/apache/yunikorn-core/pkg/common/resources.TestCalculateAbsUsedCapacity
      /Users/mitdesai/workspace/apache/yunikorn/yunikorn-core/pkg/common/resources/resources_test.go:1524
      testing.tRunner
      /usr/local/go/src/testing/testing.go:1576
      2023-08-03T00:09:58.470-0700 WARN core.resources resources/resources.go:958 Absolute resource value result wrapped or overflow {"resource": "memory", "capacity": 0, "usage": 1024}
      github.com/apache/yunikorn-core/pkg/common/resources.CalculateAbsUsedCapacity
      /Users/mitdesai/workspace/apache/yunikorn/yunikorn-core/pkg/common/resources/resources.go:958
      github.com/apache/yunikorn-core/pkg/common/resources.TestCalculateAbsUsedCapacity
      /Users/mitdesai/workspace/apache/yunikorn/yunikorn-core/pkg/common/resources/resources_test.go:1524
      testing.tRunner
      /usr/local/go/src/testing/testing.go:1576
      2023-08-03T00:09:58.470-0700 WARN core.resources resources/resources.go:950 Higher usage than max capacity {"resource": "vcores", "capacity": 0, "usage": 1}
      github.com/apache/yunikorn-core/pkg/common/resources.CalculateAbsUsedCapacity
      /Users/mitdesai/workspace/apache/yunikorn/yunikorn-core/pkg/common/resources/resources.go:950
      github.com/apache/yunikorn-core/pkg/common/resources.TestCalculateAbsUsedCapacity
      /Users/mitdesai/workspace/apache/yunikorn/yunikorn-core/pkg/common/resources/resources_test.go:1524
      testing.tRunner
      /usr/local/go/src/testing/testing.go:1576
      2023-08-03T00:09:58.470-0700 WARN core.resources resources/resources.go:958 Absolute resource value result wrapped or overflow {"resource": "vcores", "capacity": 0, "usage": 1}
      github.com/apache/yunikorn-core/pkg/common/resources.CalculateAbsUsedCapacity
      /Users/mitdesai/workspace/apache/yunikorn/yunikorn-core/pkg/common/resources/resources.go:958
      github.com/apache/yunikorn-core/pkg/common/resources.TestCalculateAbsUsedCapacity
      /Users/mitdesai/workspace/apache/yunikorn/yunikorn-core/pkg/common/resources/resources_test.go:1524
      testing.tRunner
      /usr/local/go/src/testing/testing.go:1576
      — FAIL: TestCalculateAbsUsedCapacity (0.00s)
      /Users/mitdesai/workspace/apache/yunikorn/yunikorn-core/pkg/common/resources/resources_test.go:1525: assertion failed:
      — test.expected
      +++ absCapacity
      &resources.Resource{
      Resources: map[string]resources.Quantity

      { - "memory": -9223372036854775808, + "memory": 9223372036854775807, - "vcores": -9223372036854775808, + "vcores": 9223372036854775807, }

      ,
      }
       
      FAIL
      FAIL github.com/apache/yunikorn-core/pkg/common/resources 0.256s
      FAIL

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mitdesai Mit Desai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: