Description
cache snapshot may panic if numa resource changed before first snapshot.
RefreshNumaSchedulerInfoByCrd is called in Snapshot() and ni.NumaSchedulerInfo is read. If numatopology is changed before snapshot is called,
- numa info is added in
addNumaInfo
- numa info is updated in
addNumaInfo and NumaChgFlag is changed to NumaInfoLessFlag
- snapshot is called
- NumaSchedulerInfo is nil and program panic
else if ni.NumaChgFlag == NumaInfoLessFlag {
numaResMap := ni.NumaSchedulerInfo.NumaResMap
Steps to reproduce the issue
Describe the results you received and expected
program is panic in current program.
What version of Volcano are you using?
v1.13
Any other relevant information
No response