Commit Graph

355 Commits

Author SHA1 Message Date
fe4a81df82 sessionctx: add validation for tidb_enable_plan_replayer_continues_capture (#40787) 2023-01-29 17:15:54 +08:00
187cafce59 statistics: move statsReader out of statistics/handle (#40790)
ref pingcap/tidb#40624, ref pingcap/tidb#40791
2023-01-28 17:13:53 +08:00
f7d35abd12 domain: use enhanced waitGroupWrapper in domain #40606 (#40626)
ref pingcap/tidb#40330
2023-01-17 20:03:49 +08:00
b9fb22d5bf statistics: fix data race in the Handle.IsTableLocked (#40572)
close pingcap/tidb#40567
2023-01-17 09:13:48 +08:00
1083f79f51 handle: use separete ctx for initStats (#40604)
close pingcap/tidb#40548
2023-01-16 18:23:48 +08:00
668881fac5 executor: add partition table testcase for historical stats (#40453)
* add partition table testcase

* add partition table testcase

* fix lint

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-11 15:46:33 +08:00
3cb091ba18 statistics: change the upper bound of the out-of-range estimation to modify count | tidb-test=pr/2012 (#39011)
close pingcap/tidb#39008
2023-01-10 15:26:23 +08:00
4a8006cad2 planner: fix panic during starting tidb-server if creating global binding for partition table (#40402)
* fix

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-09 13:18:27 +08:00
d0272703f3 statistics: support historical stats dump partition table (#40310) 2023-01-05 11:52:20 +08:00
f483b39c34 metrics: add metrics for plan replayer and historical stats (#40271) 2023-01-04 10:50:20 +08:00
fc241b294e domain: revise plan replayer process log (#40126) 2022-12-26 20:02:15 +08:00
014159df0a statistics: fix incorrect datetime value when loading stats (#40084)
close pingcap/tidb#39336
2022-12-23 17:40:14 +08:00
5fdd3bd56a server: support download plan replayer continues capture file (#40085) 2022-12-22 17:42:54 +08:00
79b4e63678 *: fix auto analyze worker crash when killed by global memory limit (#39946)
close pingcap/tidb#39947
2022-12-15 15:38:52 +08:00
0f95a5a4b3 domain, statistics: periodically update stats healthy distribution (#39739)
close pingcap/tidb#39349
2022-12-15 12:14:52 +08:00
388e008846 statistics: add source column for stats_meta_hisotry table (#39835) 2022-12-14 14:38:52 +08:00
760dbe102d statistics: support gc outdated historical stats (#39788) 2022-12-13 16:40:52 +08:00
Bin
33e5baade9 fix: update ioutil.readall (#39850) 2022-12-13 10:24:51 +08:00
ef6fb2ee75 statistics: support download history stats from stats_history (#39701) 2022-12-09 21:35:45 +08:00
5127ad25b5 statistics: add historical stats testcase (#39612) 2022-12-05 20:06:06 +08:00
12e527213f statistics: enlarge capacity of ddlEventCh to 1000 (#39532)
ref pingcap/tidb#36004, ref pingcap/tidb#38189
2022-12-02 03:14:01 +08:00
c34ee821a2 errno, statistics: show partition name whose stats are missing when merging global stats fails (#39348) 2022-11-25 18:31:59 +08:00
ddfa6db728 statistics: remove 1min no write check for unanalyzed table in auto analyze (#39395) 2022-11-25 17:55:59 +08:00
48e17e2ecb planner: revise sync load error msg (#39198) 2022-11-18 14:13:55 +08:00
6af4e4b160 statistics: fix merge global stats panic if the partition hasn't been analyzed before (#39123)
close pingcap/tidb#39121
2022-11-15 18:27:55 +08:00
678aa56ece planner: update some UTs from cost model1 to model2 (#39124)
ref pingcap/tidb#35240
2022-11-14 14:31:54 +08:00
238caf6571 *: add statistic lock/unlock function (#38387) 2022-11-11 22:25:54 +08:00
4b08ccc6f0 statistics, executor: merge Count and ModifyCount for global stats (#39014)
close pingcap/tidb#38955
2022-11-11 18:31:53 +08:00
9761e6789a *: enable the CI test for concurrent ddl (#38926) 2022-11-10 01:02:02 +08:00
6399e6cb5b planner: update some UTs from cost model1 to model2 (#39013)
ref pingcap/tidb#35240
2022-11-09 19:15:51 +08:00
ad4d43219a planner: support record table runtime stats during optimize (#38876)
ref pingcap/tidb#38779
2022-11-08 19:31:50 +08:00
6eb9379d43 planner: sync load shouldn't load items which isn't intiailized before (#38949)
close pingcap/tidb#38919
2022-11-08 11:25:50 +08:00
490e4c4d60 session, sessionctx: enable metadata lock by default (#38866)
close pingcap/tidb#37275, ref pingcap/tidb#38890
2022-11-07 09:37:50 +08:00
f9c7bbccec *: authentication using tidb_auth_token plugin (#38773)
close pingcap/tidb#38504
2022-11-04 02:54:00 +08:00
5cdfea619f *: bring back the 'make ut' (#38806) 2022-11-02 17:18:00 +08:00
49e7c700ef executor: support checking killed during merge stats (#38708)
ref pingcap/tidb#35142
2022-11-02 12:43:59 +08:00
636a363f7b server: support dumpPartitionStats param for statsHandler (#38190)
ref pingcap/tidb#37977
2022-10-28 12:37:58 +08:00
70f3348ebf executor: support save partition stats in concurrency (#38239)
ref pingcap/tidb#35142
2022-10-25 15:57:55 +08:00
e8d265981a statistics: support merge global topn in concurrency (#38358)
ref pingcap/tidb#35142
2022-10-18 17:07:53 +08:00
47739fff5c statistics: implement batch size for auto analyze partition table in dynamic mode (#38153)
ref pingcap/tidb#37977
2022-09-27 11:39:44 +08:00
35f61a4816 handle_test: fix unstable TestConcurrentLoadHistTimeout (#38106)
close pingcap/tidb#38085
2022-09-26 12:45:43 +08:00
e7d0c46a75 executor: remove loading unnecessary stats during analyze partition table in dynamic mode (#38028)
ref pingcap/tidb#37977
2022-09-22 15:07:02 +08:00
d8c2906842 statistics: fix data race in the QueryFeedback (#37907)
close pingcap/tidb#37903
2022-09-19 13:41:00 +08:00
1eeedacc60 *: remove goleak's ignoring opencensus top function (#37908) 2022-09-19 12:29:00 +08:00
d86e7956d4 *: support send flashback cluster RPC (#37659)
close pingcap/tidb#37651, close pingcap/tidb#37665
2022-09-09 11:40:56 +08:00
0fb8ae887c statistics: fix unstable TestAnalyzeGlobalStatsWithOpts2 (#37705)
ref pingcap/tidb#37647
2022-09-08 14:46:56 +08:00
7eb7ca902a planner: fallback to static plan for partition table if having no global stats in dynamic prune mode (#37573)
ref pingcap/tidb#37535
2022-09-08 09:20:57 +08:00
47f44cae9d sessionctx/variable: turn off TiDBEnablePseudoForOutdatedStats by default (#36797)
ref pingcap/tidb#27601
2022-09-07 11:50:56 +08:00
7d0318cbd3 planner, statistics: refine stats loaded status and when to use pseudo stats (#37444)
close pingcap/tidb#37485
2022-09-01 20:56:24 +08:00
6827954e1f statistics: revise loading unnecessary fmsketch (#37452) 2022-08-31 14:48:24 +08:00