Mit Desai created YUNIKORN-1897:
-----------------------------------

             Summary: Test fails: TestCalculateAbsUsedCapacity
                 Key: YUNIKORN-1897
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1897
             Project: Apache YuniKorn
          Issue Type: Bug
          Components: core - common
    Affects Versions: 1.3.0
            Reporter: Mit Desai


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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to