Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
Signed-off-by: wjhuang2016 <[email protected]>
  • Loading branch information
wjhuang2016 committed Sep 23, 2024
1 parent 7166370 commit 80774fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions framework/mainloop.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ func (c *testCase) execute(ctx context.Context) error {
}
}
}
if cnt%50 == 0 && rand.Intn(2) == 0 {
if cnt%10000 == 0 && rand.Intn(2) == 0 {
break
}

Expand All @@ -642,7 +642,7 @@ func (c *testCase) execute(ctx context.Context) error {
if err != nil {
return err
}
if rand.Intn(10) == 0 {
if rand.Intn(100) == 0 {
dmlSQL, err = sqlgenerator.SetTiFlashReplica.Eval(state)
if err != nil {
return err
Expand Down
1 change: 1 addition & 0 deletions framework/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ var dmlIgnoreList = []string{
"Unsupported expression type MysqlBit",
"Unexpected missing column",
"strconv.Atoi",
//"other error for mpp stream",

"Can't find a proper physical plan for this query",
"Your query has been cancelled due to exceeding the allowed memory limit",
Expand Down
2 changes: 1 addition & 1 deletion sqlgenerator/qpg_mutator.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var SetVariable = NewFn(func(state *State) Fn {
return Or(
And(Str("set"), Str("tidb_max_chunk_size"), Str("="), Or(Str("32"), Str("4096"))),
And(Str("set"), Str("tidb_enable_clustered_index"), Str("="), Or(Str("0"), Str("1"))),
And(Str("set"), Str("sql_mode"), Str("="), Or(Str("''"), Str("default"))),
//And(Str("set"), Str("sql_mode"), Str("="), Or(Str("''"), Str("default"))),
And(Str("set"), Str("tidb_enable_chunk_rpc"), Str("="), Or(Str("0"), Str("1"))),
And(Str("set"), Str("tidb_enable_clustered_index"), Str("="), Or(Str("0"), Str("1"), Str("'INT_ONLY'"))),
And(Str("set"), Str("tidb_enable_table_partition"), Str("="), Or(Str("0"), Str("1"))),
Expand Down

0 comments on commit 80774fa

Please sign in to comment.