Skip to content

Commit

Permalink
修复csi map 并发panic问题 (PaddlePaddle#1346)
Browse files Browse the repository at this point in the history
  • Loading branch information
luoyuedong authored May 11, 2024
1 parent 485782b commit 62d3a3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/fs/csiplugin/controller/mount_point_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ func (m *MountPointController) handleRunningPod(pod v1.Pod, updateMounts bool) {

func (m *MountPointController) CheckAndRemountVolumeMount(volumeMount volumeMountInfo) error {
// TODO(dongzezhao) get mountParameters from volumeMountInfo
m.pvMapLock.Lock()
pvParams_, ok := m.pvParamsMap[volumeMount.VolumeName]
m.pvMapLock.Unlock()
if !ok {
log.Errorf("get pfs parameters [%s] not exist", volumeMount.VolumeName)
return fmt.Errorf("get pfs parameters [%s] not exist", volumeMount.VolumeName)
Expand Down

0 comments on commit 62d3a3c

Please sign in to comment.