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

VEvent: Add Keyspace/Shard properties to proto #9386

Merged
merged 2 commits into from
Dec 16, 2021

Conversation

rohit-nayak-ps
Copy link
Contributor

@rohit-nayak-ps rohit-nayak-ps commented Dec 14, 2021

Description

Currently not all types of VEvents have the originating Keyspace/Shard defined: they are present in Row and Field events but we also have other special events like Journal, LastPK, Version, VGTID etc where they are not.

This makes it difficult for VStream API consumers to identify the source of some events. This PR adds the Keyspace and Shard attributes to every VEvent.

Signed-off-by: Rohit Nayak rohit@planetscale.com

Related Issue(s)

#9332

Checklist

  • Should this PR be backported?
  • Tests were added or are not required
  • Documentation was added or is not required

Signed-off-by: Rohit Nayak <rohit@planetscale.com>
@rohit-nayak-ps rohit-nayak-ps added Component: VReplication release notes Type: Enhancement Logical improvement (somewhere between a bug and feature) labels Dec 14, 2021
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Copy link
Contributor

@mattlord mattlord left a comment

Choose a reason for hiding this comment

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

I like it! Event context always comes in handy :-)

Copy link
Member

@5antelope 5antelope left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for working on this @rohit-nayak-ps! 🎉

This would help a lot for the integration with CDC projects like Debezium, I think it might worth mentioning this on vstream documentations if there is any or mention this in the next release.

@deepthi deepthi merged commit 567fe98 into vitessio:main Dec 16, 2021
@deepthi deepthi deleted the rn-vevent-add-keyspace-shard branch December 16, 2021 02:44
@deepthi
Copy link
Member

deepthi commented Dec 16, 2021

As @sonne5 said we should document this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: VReplication Type: Enhancement Logical improvement (somewhere between a bug and feature)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants