Skip to content

vstream: support default values#5736

Merged
deepthi merged 5 commits intovitessio:masterfrom
planetscale:ss-vstream-defaults
Jan 20, 2020
Merged

vstream: support default values#5736
deepthi merged 5 commits intovitessio:masterfrom
planetscale:ss-vstream-defaults

Conversation

@sougou
Copy link
Copy Markdown
Contributor

@sougou sougou commented Jan 19, 2020

This change refactors the vstream functionality into a separate file, along with its own manager.
With this change, we introduce a new special Gtid value "current", which will start the streams at the current position. If no keyspace is specified, then all keyspaces are included. If a keyspace has no shard specified, then all shards are included.

We reserve the empty Gtid value for the future to request all data, including existing rows.

Make vstreamer start from current position if the requested
position is "current". This will be supported by VStream.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
We need more elaborate data structures for handling journal events.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
In the future, we want to allow an empty position to mean:
"copy existing data also", just like in the case of VReplication.
So, for starting from current position, the VStream request
must specify the Gtid as "current".

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
@sougou sougou requested review from deepthi and zmagg January 19, 2020 03:30
Copy link
Copy Markdown
Collaborator

@deepthi deepthi left a comment

Choose a reason for hiding this comment

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

LGTM

@deepthi deepthi merged commit 1a2cddf into vitessio:master Jan 20, 2020
@sougou sougou deleted the ss-vstream-defaults branch January 21, 2020 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants