Skip to content

Updates how master gtid position is obtained for file:pos flavor#5689

Merged
sougou merged 1 commit intovitessio:masterfrom
tinyspeck:updates-master-gtidset-file-pos
Jan 11, 2020
Merged

Updates how master gtid position is obtained for file:pos flavor#5689
sougou merged 1 commit intovitessio:masterfrom
tinyspeck:updates-master-gtidset-file-pos

Conversation

@rafael
Copy link
Member

@rafael rafael commented Jan 11, 2020

Description

When generating masterGTIDSet in file:pos most likely you will have a topology
like the following:

  Source A -> Target B (B has a vreplication stream from A)

From the target perspective, the source A is the master and you want to generate
a gtid that is based on binlog file position of Source A.

As an example, let's see this topology:

  Master A -> Source B -> Target C (C has vreplication stream from B)

Prior to this change, masterGTIDSet was returning the binlogfile:pos of Master A. But
in reality, the Target C wants the position of Source B.

When generating masterGTIDSet in file:pos most likely you will have a topology
like the following:

  Source A -> Target B (B has a vreplication stream from A)

From the target perspective, the source A is the master and you want to generate
a gtid that is based on binlog file position of that server.

As an example, let's see this topology:

  Master A -> Source B -> Target C (C has vreplication stream from B)

Prior to this change, masterGTIDSet was returning the binlogfile:pos of A. But
in reality, the Target C wants the position of B.

Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
@rafael rafael requested a review from sougou as a code owner January 11, 2020 00:46
Copy link
Contributor

@sougou sougou left a comment

Choose a reason for hiding this comment

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

This is fine. Essentially, you can't use this flavor for anything other than vreplication. And for that context, this is the right behavior.

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