Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
Description
https://github.com/apache/incubator-yunikorn-core/blob/master/pkg/rmproxy/rmproxy.go#L369 may cause the scheduler to crash because the node.Attributes map could be uninitialized.
Example:
2022-03-16T05:22:46.077Z INFO cache/nodes.go:216 report updated nodes to scheduler {"request": "nodes:<nodeID:\"ip-172-19-185-239.us-west-2.compute.internal\" action:DECOMISSION > rmID:\"mycluster\" "} panic: assignment to entry in nil map goroutine 395199 [running]: github.com/apache/incubator-yunikorn-core/pkg/rmproxy.(*RMProxy).UpdateNode.func1(0xc02d9fa320, 0xc000300000) /go/pkg/mod/github.com/apache/incubator-yunikorn-core@v0.0.0-20220221055154-ff851af3b358/pkg/rmproxy/rmproxy.go:368 +0x11d created by github.com/apache/incubator-yunikorn-core/pkg/rmproxy.(*RMProxy).UpdateNode /go/pkg/mod/github.com/apache/incubator-yunikorn-core@v0.0.0-20220221055154-ff851af3b358/pkg/rmproxy/rmproxy.go:364 +0x7a
Attachments
Issue Links
- is caused by
-
YUNIKORN-1090 remove common.Node from the shim
- Closed
- links to