-
Notifications
You must be signed in to change notification settings - Fork 281
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
pdutil(ticdc): split tidb_ddl_job
table
#6673
Conversation
Signed-off-by: Neil Shen <overvenus@gmail.com>
[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. |
// RegionLabel is the label of a region. | ||
// NOTE: This type is exported by HTTP API. Please pay more attention when modifying it. | ||
// Copied from github.com/tikv/pd/server/schedule/labeler | ||
type RegionLabel struct { |
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 not import the github.com/tikv/pd/server/schedule/labeler
directly? I saw it's a public type.
See: https://github.com/tikv/pd/blob/master/server/schedule/labeler/rules.go#L32
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.
It make TiCDC depends on pd server which may bloat TiCDC binary size and dependency graph.
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.
Actually, we have depends on it. see: https://github.com/pingcap/tiflow/blob/master/go.mod#L77
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.
Tried, failed to compile tests
make tidy
go mod tidy
./tools/check/check-tidy.sh
go: finding module for package google.golang.org/grpc/naming
github.com/pingcap/tiflow/pkg/pdutil tested by
github.com/pingcap/tiflow/pkg/pdutil.test imports
github.com/tikv/pd/server/schedule/labeler imports
github.com/tikv/pd/server/storage/endpoint imports
go.etcd.io/etcd/clientv3 tested by
go.etcd.io/etcd/clientv3.test imports
go.etcd.io/etcd/integration imports
go.etcd.io/etcd/proxy/grpcproxy imports
google.golang.org/grpc/naming: module google.golang.org/grpc@latest found (v1.48.0), but does not contain package google.golang.org/grpc/naming
make: *** [Makefile:292: tidy] Error 1
We have to upgrade etcd version in PD or patch etcd in TiCDC side, I think it's not worth to do so, only complicates already complexed dependency.
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.
Sadly
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.
Rest LGTM
Signed-off-by: Neil Shen <overvenus@gmail.com>
there are 3 tables newly introduced in 6.2 |
TiCDC cares |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 84e3a72
|
/run-verify |
c1d1bca
to
da15a1d
Compare
/merge |
This pull request has been accepted and is ready to merge. Commit hash: da15a1d
|
/run-verify |
1 similar comment
/run-verify |
Signed-off-by: Neil Shen <overvenus@gmail.com>
b05c8ab
to
8753323
Compare
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 8753323
|
/run-verify |
/run-dm-integration-test |
@overvenus: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created: #6700. |
In response to a cherrypick label: new pull request created: #6701. |
What problem does this PR solve?
Issue Number: close #4756
What is changed and how it works?
Split the table
tidb_ddl_job
.Check List
Tests
Logs from PD leader.
Questions
Will it cause performance regression or break compatibility?
No.
Do you need to update user documentation, design documentation or monitoring documentation?
No.
Release note