Skip to content

Commit f826ef3

Browse files
authored
fix: status updater deleted pod group race (#421)
1 parent a8f69e7 commit f826ef3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/scheduler/cache/status_updater/concurrency.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ func (su *defaultStatusUpdater) updatePodGroup(
102102
} else {
103103
// Move the update to the applied cache
104104
su.appliedPodGroupUpdates.Store(key, updateData)
105-
su.inFlightPodGroups.Delete(key)
105+
_, loaded := su.inFlightPodGroups.LoadAndDelete(key)
106+
if !loaded {
107+
su.appliedPodGroupUpdates.Delete(key)
108+
}
106109
}
107110
}
108111

0 commit comments

Comments
 (0)