Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiup playground use root user check tidb status may cause problem. #2221

Closed
Defined2014 opened this issue Jun 26, 2023 · 2 comments · Fixed by #2296
Closed

Tiup playground use root user check tidb status may cause problem. #2221

Defined2014 opened this issue Jun 26, 2023 · 2 comments · Fixed by #2296
Assignees
Labels
type/bug Categorizes issue as related to a bug.
Milestone

Comments

@Defined2014
Copy link

Bug Report

see details from pingcap/tidb#44895, and the root cause is

func checkDB(dbAddr string, timeout int) bool {
dsn := fmt.Sprintf("root:@tcp(%s)/", dbAddr)
if timeout > 0 {
for i := 0; i < timeout; i++ {
if tryConnect(dsn) == nil {
return true
}
time.Sleep(time.Second)
}
return false
}
for {
if err := tryConnect(dsn); err == nil {
return true
}
time.Sleep(time.Second)
}
}

  1. What version of TiUP are you using (tiup --version)?
➜  tidb-x git:(master) tiup playground --version
Starting component `playground`: /Users/jasonmo/.tiup/components/playground/v1.12.3/tiup-playground --version
tiup version 1.12.3 tiup
Go Version: go1.19.9
Git Ref: v1.12.3
GitHash: b8381cfd8180bdf5a3b7924d0249538ac15dee81
@shawn0915
Copy link

same root cause as https://asktug.com/t/topic/1010718/31?u=shawnyan

@kennedy8312
Copy link

tiup playground --tag failed to restart after changing root passwd during the initial start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Categorizes issue as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants