Commit Graph

76 Commits

Author SHA1 Message Date
438297557a *: replace CreateMockStoreAndDomain with CreateMockStore (#45947) 2023-08-10 02:28:56 +00:00
389ccb3748 ttl: make ttl manually trigger stable (#45869)
close pingcap/tidb#45868
2023-08-08 06:34:55 +00:00
6d6547a2eb timer,ttl: add some metrics for timer framework and TTL timer syncing (#45611)
close pingcap/tidb#45610
2023-07-28 04:52:35 +00:00
c0459da30d ttl: ttl use timer framework to trigger jobs (#45469)
close pingcap/tidb#45468
2023-07-26 04:46:33 +00:00
f6be155071 ttl: fix some memory leak in TTL (#45512)
close pingcap/tidb#45510
2023-07-24 04:14:49 +00:00
2bdc3e5d72 ttl: fix unstable test 'TestTTLTimerHookOnEvent' (#45446)
close pingcap/tidb#45445
2023-07-19 03:24:47 +00:00
49bdaaf283 ttl: implement timer for TTL (#45269)
close pingcap/tidb#45268
2023-07-18 08:33:46 +00:00
9c428bf9c7 ttl: refactor TTL to seperate creating new job and take timeout job codes (#45286)
close pingcap/tidb#45285
2023-07-13 07:50:15 +00:00
967699a509 ttl: Add TTLTimersSyncer to sync TTL meta to timers (#45165)
close pingcap/tidb#45164
2023-07-06 12:20:16 +00:00
8658a984ca ttl: fix a bug that a TTL task will not be taken by other tidb after failover sometimes (#45023)
close pingcap/tidb#45022
2023-06-28 16:33:16 +00:00
689bedf824 ttl: fix ttl job start time will be override after failover (#44768)
close pingcap/tidb#44767
2023-06-21 08:37:14 +00:00
47101e88d0 domain: support GC runaway record (#44784)
ref pingcap/tidb#43691, close pingcap/tidb#44804
2023-06-21 04:01:34 +00:00
0a6f963765 *: remove useless (#44454) 2023-06-06 14:21:41 +00:00
4c83352678 *: Introduce runaway statement in resource group (#43843)
ref pingcap/tidb#43691
2023-05-31 11:16:42 +00:00
b901431398 *: use time.DateTime,time.DateOnly to replace magic number (#43505) 2023-05-04 03:21:55 +00:00
2701fb90d2 ttl: use SQL_NO_CACHE to skip tikv block cache for TTL scan queries (#43229)
close pingcap/tidb#43206
2023-04-20 18:21:20 +08:00
6122ca307e linter: support lll to avoid too long line (#42718)
close pingcap/tidb#42570
2023-04-12 23:23:01 +08:00
e942ab6148 kazel: support auto-config shard_count (#42751)
close pingcap/tidb#42827
2023-04-06 15:46:58 +08:00
fd57e500a6 bazel: update config (#42757) 2023-04-03 14:58:57 +08:00
f5ca27ef32 ttl: fix TTL cannot export metrics tidb_server_ttl_phase_time (#42517)
close pingcap/tidb#42515
2023-03-23 19:26:42 +08:00
cfcb862ffe ttl: add more metrics for TTL in grafana (#42468)
close pingcap/tidb#42466
2023-03-22 18:54:42 +08:00
909d57280d ttl: check expire time in scan worker to ensure the deleted rows are right (#42319)
close pingcap/tidb#42318
2023-03-16 19:02:41 +08:00
7089399891 ttl: fix upgrade from 6.5 to 6.6 configuration default value (#41866)
close pingcap/tidb#41865
2023-03-09 18:49:12 +08:00
723526708d metrics: attach const label keyspace_id (#41693)
close pingcap/tidb#41698
2023-03-04 00:03:10 +08:00
469ec9dc83 ttl: limit total count of running tasks across the cluster (#41586)
close pingcap/tidb#41585
2023-02-28 18:05:08 +08:00
61ed093fe1 ttl: add failpoint for task heartbeat expire interval (#41761)
close pingcap/tidb#41760
2023-02-28 14:25:10 +08:00
a41fb0cd5b ttl: add running jobs to mysql.tidb_ttl_job_history (#41420)
close pingcap/tidb#41419
2023-02-16 12:12:01 +08:00
79ae1e3c1f *: update bazel config (#41296) 2023-02-13 14:38:01 +08:00
92a82ade4f ttl: optimize bazel for TTL codes (#41278)
close pingcap/tidb#41276
2023-02-11 01:31:59 +08:00
caaf66819d ddl: fix owner get panic info with dist-reorg (#41217)
close pingcap/tidb#41208
2023-02-10 20:40:00 +08:00
61e1d81974 add metrics for TTL (#41155)
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Co-authored-by: 王超 <cclcwangchao@hotmail.com>
2023-02-09 20:28:31 +08:00
e245a931af ttl: fix ttl job manager will panic if the status cache doesn't contain table (#41069)
close pingcap/tidb#41067, close pingcap/tidb#41068
2023-02-06 17:53:57 +08:00
76f1c526c4 ttl: fix TTL will delete unexpected rows when timezone changed (#41044)
close pingcap/tidb#41043
2023-02-06 10:45:56 +08:00
eb11fb2b4e ttl: avoid endless loop in TTL task schedule (#41020)
close pingcap/tidb#41019
2023-02-03 15:03:56 +08:00
4a38deec03 ttl: don't fetch ttl scan task after it finished (#40919)
close pingcap/tidb#40918
2023-02-01 12:25:55 +08:00
4fd710c411 ttl: add metrics for task manager (#40819)
close pingcap/tidb#40810
2023-01-31 13:19:55 +08:00
db435e1abe ttl: auto delete old rows in mysql.tidb_ttl_job_history (#40808)
close pingcap/tidb#40807
2023-01-29 20:09:54 +08:00
d22795aafb ttl: use a standalone manager in TriggerScanTask test (#40816)
close pingcap/tidb#40811
2023-01-29 14:05:54 +08:00
4686338d0e ttl: add table mysql.ttl_job_history to store ttl job histories (#40655)
close pingcap/tidb#40654
2023-01-29 10:19:53 +08:00
fb96c1371d ttl: notify tidb nodes through etcd notification (#40705)
close pingcap/tidb#40365
2023-01-28 18:35:53 +08:00
55361cf75c linter: find inappropriate key in call to context.WithValue (#40769)
close pingcap/tidb#40796
2023-01-28 18:03:53 +08:00
f268e29b35 ttl: execute scan tasks (#40564)
close pingcap/tidb#40364
2023-01-18 15:55:51 +08:00
b61932461b ttl: submit ttl scan task to the system table (#40422)
close pingcap/tidb#40362, ref pingcap/tidb#40363
2023-01-13 15:51:46 +08:00
26dab31068 ttl: support float number and store ttl_job_interval in info schema (#40509)
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Co-authored-by: Weizhen Wang <wangweizhen@pingcap.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-12 16:42:34 +08:00
d8ef079277 ttl: retry delete when write conflict happens in txn (#40503)
* ttl: retry delete when write conflict happens in txn

* update

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-12 14:20:33 +08:00
caffd8d6c5 ttl: forbid creating/altering a table with TTL options when pk contains float/double column (#40487)
* ttl: forbid create/alter a table with TTL options when pk contains float/double column

* format

* update

* update

* update

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-11 16:22:33 +08:00
eff7462778 ttl: fix the TTL job reports error when primary key contains a column with type ENUM (#40457)
close pingcap/tidb#40456
2023-01-11 11:10:23 +08:00
9826913de0 ttl: Add CommandClient to trigger TTL job manually (#40346)
close pingcap/tidb#40345
2023-01-10 11:48:22 +08:00
7dbf1a5033 ttl: add ttl goroutine exit log (#40416)
close pingcap/tidb#40415
2023-01-09 18:12:22 +08:00
b226dfcb05 ttl: add ttl_job_interval attribute and remove tidb_ttl_job_interval variable (#40033)
close pingcap/tidb#40028
2023-01-06 17:56:21 +08:00