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

Panic in Resource.String() with nil resource

    XMLWordPrintableJSON

Details

    Description

      The scheduler can log a panic when the logging system tries to log a nil resource.
      An example for a log entry:

      2020-10-10T01:57:55.882Z	ERROR	cache/queue_info.go:261	parent queue exceeds maximum resource	{"allocationId": "map[memory:1]", "maxResourceError": "PANIC=runtime error: invalid memory address or nil pointer dereference", "error": "allocation (map[memory:1]) puts queue root over maximum allocation (map[attachable-volumes-aws-ebs:475 ephemeral-storage:-528315005700 hugepages-1Gi:0 hugepages-2Mi:0 memory:1898860 pods:3450 vcore:264875])"}
      github.com/apache/incubator-yunikorn-core/pkg/cache.(*QueueInfo).IncAllocatedResource
      	/grid/0/jenkins/workspace/workspace/App_builds/SOURCES/yunikorn-core/pkg/cache/queue_info.go:261
      github.com/apache/incubator-yunikorn-core/pkg/cache.(*PartitionInfo).addNewAllocationInternal
      

      Attachments

        Issue Links

          Activity

            People

              wilfreds Wilfred Spiegelenburg
              wilfreds Wilfred Spiegelenburg
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: