Skip to content

Commit

Permalink
component/playground: rm the restriction that tikv num must be greate…
Browse files Browse the repository at this point in the history
…r than 0 (#2073)
  • Loading branch information
lilinghai authored Nov 14, 2022
1 parent 1ca7132 commit 63d509b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/playground/playground.go
Original file line number Diff line number Diff line change
Expand Up @@ -814,8 +814,9 @@ func (p *Playground) bootCluster(ctx context.Context, env *environment.Environme

p.bootOptions = options

if options.PD.Num < 1 || options.TiKV.Num < 1 {
return fmt.Errorf("all components count must be great than 0 (tikv=%v, pd=%v)", options.TiKV.Num, options.PD.Num)
// All others components depend on the pd, we just ensure the pd count must be great than 0
if options.PD.Num < 1 {
return fmt.Errorf("all components count must be great than 0 (pd=%v)", options.PD.Num)
}

if !utils.Version(options.Version).IsNightly() {
Expand Down

0 comments on commit 63d509b

Please sign in to comment.