Skip to content

Commit

Permalink
Fix race condition in cache (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
varungup90 authored Jan 3, 2025
1 parent ba78d2d commit 06d3901
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,9 @@ func (c *Cache) deletePodAndModelMapping(podName, modelName string) {
}

func (c *Cache) debugInfo() {
c.mu.RLock()
defer c.mu.RUnlock()

for _, pod := range c.Pods {
klog.V(4).Infof("pod: %s, podIP: %v", pod.Name, pod.Status.PodIP)
}
Expand Down

0 comments on commit 06d3901

Please sign in to comment.