-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Get DDL owner information form PD by TiDB-API #6961
Comments
We could put more information about TiDB in Etcd. Such as ip/name/isOwner/lease/status_port. |
@iamxy PTAL |
I think we needn't the information about "isOwner", we can get it from PD directly after we support the mapping relationship between the DDL ID and TiDB. And if we need "isOwner", we should update it. |
At the beginning, this information is enough:
|
zimulala
changed the title
Get DDL owner information form PD by TiDB-ctrl
Get DDL owner information form PD by TiDB-API
Jul 3, 2018
This was referenced Jul 17, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We want to know easily which TiDB is the DDL owner. Now we can get it from executing SQL. But we only know if the current TiDB is the DDL owner.
So we need to get it from PD. And before that, we need to establish a mapping relationship between the DDL ID and TiDB.
The text was updated successfully, but these errors were encountered: