Skip to content

Commit

Permalink
keep processing other nodes for the nil node error
Browse files Browse the repository at this point in the history
  • Loading branch information
snowplayfire committed Jul 11, 2019
1 parent ab960c6 commit 6a1bbff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/scheduler/algorithm/predicates/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,7 @@ func getTPMapMatchingExistingAntiAffinity(pod *v1.Pod, nodeInfoMap map[string]*s
nodeInfo := nodeInfoMap[allNodeNames[i]]
node := nodeInfo.Node()
if node == nil {
catchError(fmt.Errorf("node %q not found", allNodeNames[i]))
cancel()
klog.Errorf("node %q not found", allNodeNames[i])
return
}
for _, existingPod := range nodeInfo.PodsWithAffinity() {
Expand Down Expand Up @@ -465,8 +464,7 @@ func getTPMapMatchingIncomingAffinityAntiAffinity(pod *v1.Pod, nodeInfoMap map[s
nodeInfo := nodeInfoMap[allNodeNames[i]]
node := nodeInfo.Node()
if node == nil {
catchError(fmt.Errorf("node %q not found", allNodeNames[i]))
cancel()
klog.Errorf("node %q not found", allNodeNames[i])
return
}
nodeTopologyPairsAffinityPodsMaps := newTopologyPairsMaps()
Expand Down

0 comments on commit 6a1bbff

Please sign in to comment.