Skip to content

Commit

Permalink
Merge pull request #636 from sivanzcw/develop
Browse files Browse the repository at this point in the history
Modify error check of return error
  • Loading branch information
volcano-sh-bot authored Dec 24, 2019
2 parents d644d44 + b4dbb7f commit 23bf9ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scheduler/framework/statement.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (s *Statement) Evict(reclaimee *api.TaskInfo, reason string) error {

func (s *Statement) evict(reclaimee *api.TaskInfo, reason string) error {
if err := s.ssn.cache.Evict(reclaimee, reason); err != nil {
if e := s.unevict(reclaimee, reason); err != nil {
if e := s.unevict(reclaimee, reason); e != nil {
klog.Errorf("Faled to unevict task <%v/%v>: %v.",
reclaimee.Namespace, reclaimee.Name, e)
}
Expand Down

0 comments on commit 23bf9ca

Please sign in to comment.