[ 
https://issues.apache.org/jira/browse/YUNIKORN-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chaoran Yu resolved YUNIKORN-1123.
----------------------------------
    Resolution: Fixed

> 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
>            Assignee: Manikandan R
>            Priority: Critical
>              Labels: pull-request-available
>
> [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-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: issues-h...@yunikorn.apache.org

Reply via email to