Skip to content

Commit

Permalink
refine PITR E2E
Browse files Browse the repository at this point in the history
  • Loading branch information
csuzhangxc committed Sep 25, 2024
1 parent d109a2b commit a461577
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/e2e/br/framework/br/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,12 @@ func WaitForLogBackupReachTS(name, pdhost, expect string, timeout time.Duration)
if err != nil {
return false, err
}
if len(kvs) != 1 {
return false, fmt.Errorf("get log backup checkpoint ts from pd %s failed", pdhost)
if len(kvs) == 0 {
// wait for log backup start
return false, nil
}
if len(kvs) > 1 {
return false, fmt.Errorf("get log backup checkpoint ts from pd %s failed, expect 1, got %d", pdhost, len(kvs))
}
checkpointTS := binary.BigEndian.Uint64(kvs[0].Value)
expectTS, err := config.ParseTSString(expect)
Expand Down

0 comments on commit a461577

Please sign in to comment.