Skip to content

Commit

Permalink
Treat connect to history pod failure as unhealthy
Browse files Browse the repository at this point in the history
  • Loading branch information
yux0 committed Sep 18, 2024
1 parent d8d3eee commit b504311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/frontend/admin_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func NewAdminHandler(
func(ctx context.Context, hostAddress string) (enumsspb.HealthState, error) {
resp, err := args.HistoryClient.DeepHealthCheck(ctx, &historyservice.DeepHealthCheckRequest{HostAddress: hostAddress})
if err != nil {
return enumsspb.HEALTH_STATE_UNSPECIFIED, err
return enumsspb.HEALTH_STATE_NOT_SERVING, err
}
return resp.GetState(), nil
},
Expand Down

0 comments on commit b504311

Please sign in to comment.