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

Add support for showing global gtid executed per shard #7856

Merged
merged 7 commits into from
Apr 15, 2021

Conversation

harshit-gangal
Copy link
Member

@harshit-gangal harshit-gangal commented Apr 13, 2021

Description

This PR adds a new query to show gtid from all shards from a keyspace.

mysql> show global gtid_executed;
+----------+-------------------------------------------+-------+
| db_name  | gtid_executed                             | shard |
+----------+-------------------------------------------+-------+
| commerce | bfb145e3-98ec-11eb-b9a7-98af65a6dc4a:1-23 | 0     |
+----------+-------------------------------------------+-------+
1 row in set (0.00 sec)

Related Issue(s)

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required

Impacted Areas in Vitess

Components that this PR will affect:

  • Query Serving

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Copy link
Collaborator

@systay systay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clever to use order aggregate like that. ⭐

@systay systay merged commit 44930cf into vitessio:master Apr 15, 2021
@systay systay deleted the show-gtid branch April 15, 2021 13:41
@systay systay added Component: Query Serving Type: Enhancement Logical improvement (somewhere between a bug and feature) labels Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Query Serving Type: Enhancement Logical improvement (somewhere between a bug and feature)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature request: VTGate support for retrieving GTIDs from shards
2 participants