Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#48430
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
  • Loading branch information
hawkingrei authored and ti-chi-bot committed Nov 9, 2023
1 parent 52c6053 commit ba1b789
Show file tree
Hide file tree
Showing 2 changed files with 427 additions and 0 deletions.
7 changes: 7 additions & 0 deletions executor/historical_stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,15 @@ func TestAssertHistoricalStatsAfterAlterTable(t *testing.T) {
}

func TestGCOutdatedHistoryStats(t *testing.T) {
<<<<<<< HEAD:executor/historical_stats_test.go
failpoint.Enable("github.com/pingcap/tidb/domain/sendHistoricalStats", "return(true)")
defer failpoint.Disable("github.com/pingcap/tidb/domain/sendHistoricalStats")
=======
require.NoError(t, failpoint.Enable("github.com/pingcap/tidb/pkg/domain/sendHistoricalStats", "return(true)"))
defer func() {
require.NoError(t, failpoint.Disable("github.com/pingcap/tidb/pkg/domain/sendHistoricalStats"))
}()
>>>>>>> ad6385ab30a (statistics: avoid oom when to gc large stats_history (#48430)):pkg/executor/historical_stats_test.go
store, dom := testkit.CreateMockStoreAndDomain(t)
tk := testkit.NewTestKit(t, store)
tk.MustExec("set global tidb_enable_historical_stats = 1")
Expand Down
Loading

0 comments on commit ba1b789

Please sign in to comment.