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

UpdateNode may cause the scheduler to crash

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              manirajv06@gmail.com Manikandan R
              yuchaoran2011 Chaoran Yu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: