Skip to content

vrepl: handle "other" events#5429

Merged
sougou merged 1 commit intovitessio:masterfrom
planetscale:ss-vrepl-gtid
Nov 12, 2019
Merged

vrepl: handle "other" events#5429
sougou merged 1 commit intovitessio:masterfrom
planetscale:ss-vrepl-gtid

Conversation

@sougou
Copy link
Copy Markdown
Contributor

@sougou sougou commented Nov 12, 2019

While working on filePos flavor, I encountered this issue where
an "other" statement will cause the next GTID to not be immediately
sent. This can cause delays if the target waits for that event.

This is pretty rare for GTID mode. But will likely be more pronounced
for filePos. So, I'm proactively making this fix to make sure we
don't delay sending of GTIDs, even in the case of non-relevant events.

Because of this change, this also means that we don't have to generate
pseudo-gtids. Generating GTIDs outside of transactions, coupled with
OTHER event will make the right thing happen.

Signed-off-by: Sugu Sougoumarane ssougou@gmail.com

While working on filePos flavor, I encountered this issue where
an "other" statement will cause the next GTID to not be immediately
sent. This can cause delays if the target waits for that event.

This is pretty rare for GTID mode. But will likely be more pronounced
for filePos. So, I'm proactively making this fix to make sure we
don't delay sending of GTIDs, even in the case of non-relevant events.

Because of this change, this also means that we don't have to generate
pseudo-gtids. Generating GTIDs outside of transactions, coupled with
OTHER event will make the right thing happen.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
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

@sougou sougou merged commit 1243100 into vitessio:master Nov 12, 2019
@sougou sougou deleted the ss-vrepl-gtid branch November 12, 2019 04:15
@rafael
Copy link
Copy Markdown
Member

rafael commented Nov 12, 2019

This also LGTM to me.

Could you unpack this more?

Because of this change, this also means that we don't have to generate
pseudo-gtids. Generating GTIDs outside of transactions, coupled with
OTHER event will make the right thing happen.

I did not get that part.

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.

3 participants