Skip to content

Commit

Permalink
Merge branch 'master' into speedUpTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Defined2014 committed May 8, 2023
2 parents 5fe44d4 + e999296 commit d6036f2
Show file tree
Hide file tree
Showing 73 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ddl/db_partition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4256,10 +4256,10 @@ func TestTruncatePartitionMultipleTimes(t *testing.T) {
time.Sleep(30 * time.Millisecond)
}
}
var errCount int32
var errCount atomic.Int32
onJobUpdatedExportedFunc := func(job *model.Job) {
if job.Type == model.ActionTruncateTablePartition && job.Error != nil {
atomic.AddInt32(&errCount, 1)
errCount.Add(1)
}
}
hook.OnJobUpdatedExported.Store(&onJobUpdatedExportedFunc)
Expand All @@ -4269,7 +4269,7 @@ func TestTruncatePartitionMultipleTimes(t *testing.T) {
go backgroundExec(store, "test", "alter table test.t truncate partition p0;", done2)
<-done1
<-done2
require.LessOrEqual(t, errCount, int32(1))
require.LessOrEqual(t, errCount.Load(), int32(1))
}

func TestAddPartitionReplicaBiggerThanTiFlashStores(t *testing.T) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d6036f2

Please sign in to comment.