Skip to content

Commit

Permalink
balancer: crash if MistUtilLoad exits (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
iameli authored May 30, 2023
1 parent 653b228 commit aa26229
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion balancer/balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,11 @@ func (b *BalancerImpl) execBalancer(ctx context.Context, balancerArgs []string)
return err
}

return b.cmd.Wait()
err = b.cmd.Wait()
if err != nil {
return err
}
return fmt.Errorf("MistUtilLoad exited cleanly")
}

func (b *BalancerImpl) queryMistForClosestNode(ctx context.Context, playbackID, lat, lon, prefix string) (string, error) {
Expand Down

0 comments on commit aa26229

Please sign in to comment.