Skip to content

Commit 5f60fac

Browse files
fishiuti-chi-bot
authored andcommitted
This is an automated cherry-pick of pingcap#56362
Signed-off-by: ti-chi-bot <[email protected]>
1 parent 07e1736 commit 5f60fac

File tree

3 files changed

+1178
-0
lines changed

3 files changed

+1178
-0
lines changed

pkg/owner/BUILD.bazel

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2+
3+
go_library(
4+
name = "owner",
5+
srcs = [
6+
"manager.go",
7+
"mock.go",
8+
],
9+
importpath = "github.com/pingcap/tidb/pkg/owner",
10+
visibility = ["//visibility:public"],
11+
deps = [
12+
"//pkg/ddl/util",
13+
"//pkg/kv",
14+
"//pkg/metrics",
15+
"//pkg/parser/terror",
16+
"//pkg/util",
17+
"//pkg/util/logutil",
18+
"//pkg/util/timeutil",
19+
"@com_github_pingcap_errors//:errors",
20+
"@com_github_pingcap_failpoint//:failpoint",
21+
"@io_etcd_go_etcd_api_v3//mvccpb",
22+
"@io_etcd_go_etcd_api_v3//v3rpc/rpctypes",
23+
"@io_etcd_go_etcd_client_v3//:client",
24+
"@io_etcd_go_etcd_client_v3//concurrency",
25+
"@org_uber_go_atomic//:atomic",
26+
"@org_uber_go_zap//:zap",
27+
],
28+
)
29+
30+
go_test(
31+
name = "owner_test",
32+
timeout = "short",
33+
srcs = [
34+
"fail_test.go",
35+
"main_test.go",
36+
"manager_test.go",
37+
],
38+
embed = [":owner"],
39+
flaky = True,
40+
shard_count = 9,
41+
deps = [
42+
"//pkg/ddl",
43+
"//pkg/infoschema",
44+
"//pkg/kv",
45+
"//pkg/parser/terror",
46+
"//pkg/store/mockstore",
47+
"//pkg/testkit",
48+
"//pkg/testkit/testsetup",
49+
"//pkg/util",
50+
"//pkg/util/logutil",
51+
"@com_github_pingcap_errors//:errors",
52+
"@com_github_pingcap_failpoint//:failpoint",
53+
"@com_github_stretchr_testify//assert",
54+
"@com_github_stretchr_testify//require",
55+
"@io_etcd_go_etcd_client_v3//:client",
56+
"@io_etcd_go_etcd_client_v3//concurrency",
57+
"@io_etcd_go_etcd_server_v3//embed",
58+
"@io_etcd_go_etcd_tests_v3//integration",
59+
"@org_golang_google_grpc//:grpc",
60+
"@org_golang_x_exp//rand",
61+
"@org_uber_go_goleak//:goleak",
62+
],
63+
)

0 commit comments

Comments
 (0)