60 lines
1.8 KiB
Python
60 lines
1.8 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "mpp",
|
|
srcs = [
|
|
"executor_with_retry.go",
|
|
"local_mpp_coordinator.go",
|
|
"recovery_handler.go",
|
|
],
|
|
importpath = "github.com/pingcap/tidb/pkg/executor/internal/mpp",
|
|
visibility = ["//pkg/executor:__subpackages__"],
|
|
deps = [
|
|
"//pkg/config",
|
|
"//pkg/ddl/placement",
|
|
"//pkg/distsql",
|
|
"//pkg/executor/internal/builder",
|
|
"//pkg/executor/internal/util",
|
|
"//pkg/executor/metrics",
|
|
"//pkg/executor/mppcoordmanager",
|
|
"//pkg/infoschema",
|
|
"//pkg/kv",
|
|
"//pkg/planner/core",
|
|
"//pkg/planner/core/base",
|
|
"//pkg/planner/core/operator/physicalop",
|
|
"//pkg/sessionctx",
|
|
"//pkg/sessionctx/vardef",
|
|
"//pkg/store/copr",
|
|
"//pkg/store/driver/backoff",
|
|
"//pkg/store/driver/error",
|
|
"//pkg/store/helper",
|
|
"//pkg/util",
|
|
"//pkg/util/execdetails",
|
|
"//pkg/util/logutil",
|
|
"//pkg/util/memory",
|
|
"//pkg/util/tiflashcompute",
|
|
"@com_github_pingcap_errors//:errors",
|
|
"@com_github_pingcap_failpoint//:failpoint",
|
|
"@com_github_pingcap_kvproto//pkg/mpp",
|
|
"@com_github_pingcap_tipb//go-tipb",
|
|
"@com_github_tikv_client_go_v2//tikv",
|
|
"@com_github_tikv_client_go_v2//tikvrpc",
|
|
"@com_github_tikv_client_go_v2//util",
|
|
"@org_uber_go_zap//:zap",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "mpp_test",
|
|
timeout = "short",
|
|
srcs = ["local_mpp_coordinator_test.go"],
|
|
embed = [":mpp"],
|
|
flaky = True,
|
|
shard_count = 2,
|
|
deps = [
|
|
"//pkg/planner/core/operator/physicalop",
|
|
"@com_github_pingcap_tipb//go-tipb",
|
|
"@com_github_stretchr_testify//require",
|
|
],
|
|
)
|