mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Log error when writing checkpoint fails
This commit is contained in:
parent
c58b63267c
commit
84a9803741
@ -177,7 +177,9 @@ func (m *ManagerImpl) genericDeviceUpdateCallback(resourceName string, devices [
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
m.mutex.Unlock()
|
m.mutex.Unlock()
|
||||||
m.writeCheckpoint()
|
if err := m.writeCheckpoint(); err != nil {
|
||||||
|
klog.Errorf("writing checkpoint encountered %v", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ManagerImpl) removeContents(dir string) error {
|
func (m *ManagerImpl) removeContents(dir string) error {
|
||||||
@ -541,7 +543,9 @@ func (m *ManagerImpl) GetCapacity() (v1.ResourceList, v1.ResourceList, []string)
|
|||||||
}
|
}
|
||||||
m.mutex.Unlock()
|
m.mutex.Unlock()
|
||||||
if needsUpdateCheckpoint {
|
if needsUpdateCheckpoint {
|
||||||
m.writeCheckpoint()
|
if err := m.writeCheckpoint(); err != nil {
|
||||||
|
klog.Errorf("writing checkpoint encountered %v", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return capacity, allocatable, deletedResources.UnsortedList()
|
return capacity, allocatable, deletedResources.UnsortedList()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user