-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
*: support metadata lock #37393
*: support metadata lock #37393
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/340547288eaa97d14ce441928a4336e823fc281b |
/run-unit-test |
Makefile
Outdated
@@ -405,10 +405,6 @@ bazel_coverage_test: failpoint-enable bazel_ci_prepare | |||
--build_event_json_file=bazel_1.json --@io_bazel_rules_go//go/config:cover_format=go_cover \ | |||
-- //... -//cmd/... -//tests/graceshutdown/... \ | |||
-//tests/globalkilltest/... -//tests/readonlytest/... -//br/pkg/task:task_test -//tests/realtikvtest/... | |||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recover it after finishing the review.
sessionctx/variable/tidb_vars.go
Outdated
@@ -1020,6 +1023,7 @@ const ( | |||
DefEnableTiDBGCAwareMemoryTrack = true | |||
DefTiDBDefaultStrMatchSelectivity = 0.8 | |||
DefTiDBEnableTmpStorageOnOOM = true | |||
DefTiDBEnableMDL = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set it to false after finishing the review.
2cc6aec
to
7772f2d
Compare
7772f2d
to
260204d
Compare
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
domain/domain.go
Outdated
@@ -624,7 +624,7 @@ func (do *Domain) refreshMDLCheckTableInfo() { | |||
} | |||
defer do.sysSessionPool.Put(se) | |||
exec := se.(sqlexec.RestrictedSQLExecutor) | |||
rows, _, err := exec.ExecRestrictedSQL(kv.WithInternalSourceType(context.Background(), kv.InternalTxnTelemetry), nil, "select job_id, version, table_ids from mysql.tidb_mdl_info") | |||
rows, _, err := exec.ExecRestrictedSQL(kv.WithInternalSourceType(context.Background(), kv.InternalTxnTelemetry), nil, fmt.Sprintf("select job_id, version, table_ids from mysql.tidb_mdl_info where version <= %d", do.InfoSchema().SchemaMetaVersion())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why here add <= condition? As I understand do.InfoSchema().SchemaMetaVersion() is max ver, right? then there is not biger ver in ddl jobs.
/run-unit-test |
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 4822e8c
|
TiDB MergeCI notify✅ Well Done! New fixed [1] after this pr merged.
|
What problem does this PR solve?
Issue Number: ref #37275
Problem Summary:
This PR supports metadata lock.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.