Skip to content

Commit

Permalink
playground: fix the health check (#2415)
Browse files Browse the repository at this point in the history
  • Loading branch information
rleungx authored May 13, 2024
1 parent 42d1df3 commit 50abc4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/playground/playground.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,13 +595,13 @@ func (p *Playground) WalkInstances(fn func(componentID string, ins instance.Inst
}
}
for _, ins := range p.tsos {
err := fn(spec.ComponentPD, ins)
err := fn(spec.ComponentTSO, ins)
if err != nil {
return err
}
}
for _, ins := range p.schedulings {
err := fn(spec.ComponentPD, ins)
err := fn(spec.ComponentScheduling, ins)
if err != nil {
return err
}
Expand Down
3 changes: 1 addition & 2 deletions pkg/cluster/api/pdapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ func (pc *PDClient) CheckHealth() error {

// CheckTSOHealth checks the health of TSO service(which is a Micro Service component of PD)
func (pc *PDClient) CheckTSOHealth(retryOpt *utils.RetryOption) error {
servicePrefix := fmt.Sprintf("tso/%s", tsoHealthPrefix)
endpoints := pc.getEndpoints(servicePrefix)
endpoints := pc.getEndpoints(tsoHealthPrefix)

if err := utils.Retry(func() error {
var err error
Expand Down

0 comments on commit 50abc4f

Please sign in to comment.