Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
extend the tiflash sync wait time (#232)
Browse files Browse the repository at this point in the history
Signed-off-by: yeya24 <[email protected]>
  • Loading branch information
yeya24 authored May 13, 2020
1 parent 9958038 commit 2725790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pocket/executor/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (e *Executor) createTiFlashTableReplica(table string) error {
func (e *Executor) WaitTiFlashTableSync(table string) error {
sql := fmt.Sprintf("SELECT AVAILABLE FROM information_schema.tiflash_replica WHERE TABLE_SCHEMA = '%s' and TABLE_NAME = '%s'",
e.dbname, table)
if err := wait.Poll(1*time.Second, 10*time.Second, func() (bool, error) {
if err := wait.Poll(1*time.Second, 30*time.Second, func() (bool, error) {
res, err := e.GetConn().Select(sql)
if err != nil {
return false, err
Expand Down

0 comments on commit 2725790

Please sign in to comment.