Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

statistics: GCStats should not wrongly remove record of an existing table (#58108) #59064

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
This is an automated cherry-pick of #58108
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
  • Loading branch information
winoros authored and ti-chi-bot committed Jan 21, 2025
commit 8f5878c9000e47d0a1ed98cc70ad3d8e7a8402a5
82 changes: 82 additions & 0 deletions pkg/statistics/handle/storage/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
name = "storage",
srcs = [
"gc.go",
"json.go",
"read.go",
"save.go",
"stats_read_writer.go",
"update.go",
],
importpath = "github.com/pingcap/tidb/pkg/statistics/handle/storage",
visibility = ["//visibility:public"],
deps = [
"//pkg/config",
"//pkg/infoschema",
"//pkg/kv",
"//pkg/meta/model",
"//pkg/parser/ast",
"//pkg/parser/model",
"//pkg/parser/mysql",
"//pkg/parser/terror",
"//pkg/sessionctx",
"//pkg/sessionctx/variable",
"//pkg/statistics",
"//pkg/statistics/asyncload",
"//pkg/statistics/handle/cache",
"//pkg/statistics/handle/lockstats",
"//pkg/statistics/handle/logutil",
"//pkg/statistics/handle/metrics",
"//pkg/statistics/handle/types",
"//pkg/statistics/handle/usage/predicatecolumn",
"//pkg/statistics/handle/util",
"//pkg/statistics/util",
"//pkg/types",
"//pkg/util/chunk",
"//pkg/util/compress",
"//pkg/util/intest",
"//pkg/util/logutil",
"//pkg/util/memory",
"//pkg/util/sqlescape",
"//pkg/util/sqlexec",
"@com_github_klauspost_compress//gzip",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_tikv_client_go_v2//oracle",
"@org_uber_go_zap//:zap",
],
)

go_test(
name = "storage_test",
timeout = "short",
srcs = [
"dump_test.go",
"gc_test.go",
"read_test.go",
"stats_read_writer_test.go",
],
flaky = True,
shard_count = 24,
deps = [
":storage",
"//pkg/domain",
"//pkg/meta/model",
"//pkg/parser/model",
"//pkg/planner/cardinality",
"//pkg/sessionctx/variable",
"//pkg/statistics",
"//pkg/statistics/handle/internal",
"//pkg/statistics/handle/types",
"//pkg/statistics/handle/util",
"//pkg/statistics/util",
"//pkg/testkit",
"//pkg/testkit/analyzehelper",
"//pkg/types",
"//pkg/util",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_stretchr_testify//require",
],
)
Loading
Loading