You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Chaoran Yu (Jira)" <ji...@apache.org> on 2022/03/16 05:56:00 UTC

[jira] [Created] (YUNIKORN-1123) UpdateNode may cause the scheduler to crash

Chaoran Yu created YUNIKORN-1123:
------------------------------------

             Summary: UpdateNode may cause the scheduler to crash
                 Key: YUNIKORN-1123
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1123
             Project: Apache YuniKorn
          Issue Type: Bug
          Components: core - scheduler
            Reporter: Chaoran Yu


[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:

 
{code:java}
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
{code}
 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org