Skip to content

Commit

Permalink
TiDB cluster -> TiDB playground cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
breezewish committed Apr 26, 2023
1 parent 8c35d3d commit dcfd8a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/playground/playground.go
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ func (p *Playground) bootCluster(ctx context.Context, env *environment.Environme
p.waitAllTiFlashUp()

fmt.Println()
color.New(color.FgGreen, color.Bold).Println("🎉 TiDB Cluster is started, enjoy!")
color.New(color.FgGreen, color.Bold).Println("🎉 TiDB Playground Cluster is started, enjoy!")
fmt.Println()
for _, dbAddr := range succ {
ss := strings.Split(dbAddr, ":")
Expand Down
8 changes: 4 additions & 4 deletions tests/tiup-playground/test_playground.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ sleep 3
trap "kill_all" EXIT

# wait start cluster successfully
timeout 300 grep -q "TiDB Cluster is started" <(tail -f $outfile)
timeout 300 grep -q "TiDB Playground Cluster is started" <(tail -f $outfile)

tiup-playground display | grep -qv "exit"
tiup-playground scale-out --db 2
Expand Down Expand Up @@ -110,7 +110,7 @@ tiup-playground $TIDB_VERSION > $outfile 2>&1 &
sleep 3

# wait start cluster successfully
timeout 300 grep -q "TiDB Cluster is started" <(tail -f $outfile)
timeout 300 grep -q "TiDB Playground Cluster is started" <(tail -f $outfile)

cat $outfile | grep ":3930" | grep -q "Done"

Expand All @@ -120,7 +120,7 @@ outfile_1=/tmp/tiup-playground-test_1.out
# no TiFlash to speed up
tiup-playground $TIDB_VERSION --tag $TAG --db 2 --tiflash 0 > $outfile_1 2>&1 &
sleep 3
timeout 300 grep -q "TiDB Cluster is started" <(tail -f $outfile_1)
timeout 300 grep -q "TiDB Playground Cluster is started" <(tail -f $outfile_1)
tiup-playground --tag $TAG display | grep -qv "exit"

# TiDB scale-out to 4
Expand All @@ -144,7 +144,7 @@ sleep 100
echo -e "\033[0;36m<<< Run TiKV-CDC test >>>\033[0m"
tiup-playground $TIDB_VERSION --db 1 --pd 1 --kv 1 --tiflash 0 --kvcdc 1 --kvcdc.version v1.0.0 > $outfile 2>&1 &
sleep 3
timeout 300 grep -q "TiDB Cluster is started" <(tail -f $outfile)
timeout 300 grep -q "TiDB Playground Cluster is started" <(tail -f $outfile)
tiup-playground display | grep -qv "exit"
# scale out
tiup-playground scale-out --kvcdc 2
Expand Down

0 comments on commit dcfd8a0

Please sign in to comment.