Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Aylei <rayingecho@gmail.com>
  • Loading branch information
aylei committed Apr 17, 2019
1 parent 7e3e4fa commit 919bae6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/backup/backupcase.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ func NewBackupCase(operator tests.OperatorActions, srcCluster *tests.TidbCluster
func (bc *BackupCase) Run() error {

// pause write pressure during backup
bc.operator.StopInsertDataTo(bc.srcCluster)
defer func() {
go func() {
if err := bc.operator.BeginInsertDataTo(bc.srcCluster); err != nil {
glog.Errorf("cluster:[%s] begin insert data failed,error: %v", bc.srcCluster.ClusterName, err)
}
}()
}()
bc.operator.StopInsertDataTo(bc.srcCluster)

err := bc.operator.DeployAdHocBackup(bc.srcCluster)
if err != nil {
Expand Down
6 changes: 2 additions & 4 deletions tests/cmd/stability/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,10 @@ func main() {
oa.CheckTidbClusterStatusOrDie(cluster1)
oa.CheckTidbClusterStatusOrDie(cluster2)

defer func() {
oa.StopInsertDataTo(cluster1)
oa.StopInsertDataTo(cluster2)
}()
go oa.BeginInsertDataToOrDie(cluster1)
defer oa.StopInsertDataTo(cluster1)
go oa.BeginInsertDataToOrDie(cluster2)
defer oa.StopInsertDataTo(cluster2)

// TODO add DDL
//var workloads []workload.Workload
Expand Down

0 comments on commit 919bae6

Please sign in to comment.