Skip to content

Commit 2d2f4f5

Browse files
authored
ttl: add methods to split ttl scan tasks (#39627)
close #39626
1 parent 4c04abc commit 2d2f4f5

File tree

7 files changed

+1181
-28
lines changed

7 files changed

+1181
-28
lines changed

ttl/cache/BUILD.bazel

+16
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,22 @@ go_library(
1212
visibility = ["//visibility:public"],
1313
deps = [
1414
"//infoschema",
15+
"//kv",
1516
"//parser/ast",
1617
"//parser/model",
1718
"//parser/mysql",
19+
"//parser/terror",
1820
"//sessionctx",
1921
"//table/tables",
22+
"//tablecodec",
2023
"//ttl/session",
2124
"//types",
2225
"//util/chunk",
26+
"//util/codec",
2327
"//util/logutil",
28+
"//util/mathutil",
2429
"@com_github_pingcap_errors//:errors",
30+
"@com_github_tikv_client_go_v2//tikv",
2531
"@org_uber_go_zap//:zap",
2632
],
2733
)
@@ -32,20 +38,30 @@ go_test(
3238
"base_test.go",
3339
"infoschema_test.go",
3440
"main_test.go",
41+
"split_test.go",
3542
"table_test.go",
3643
"ttlstatus_test.go",
3744
],
3845
embed = [":cache"],
3946
flaky = True,
4047
deps = [
48+
"//infoschema",
49+
"//kv",
4150
"//parser",
4251
"//parser/model",
4352
"//server",
53+
"//store/helper",
54+
"//tablecodec",
4455
"//testkit",
4556
"//testkit/testsetup",
4657
"//ttl/session",
58+
"//types",
59+
"//util/codec",
60+
"@com_github_pingcap_kvproto//pkg/metapb",
4761
"@com_github_stretchr_testify//assert",
4862
"@com_github_stretchr_testify//require",
63+
"@com_github_tikv_client_go_v2//tikv",
64+
"@com_github_tikv_pd_client//:client",
4965
"@org_uber_go_goleak//:goleak",
5066
],
5167
)

0 commit comments

Comments
 (0)