Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Properly exclude the local instance from the seeds list #131

Merged
merged 1 commit into from
Jun 26, 2018

Conversation

gianlucaborello
Copy link

@gianlucaborello gianlucaborello commented Jun 11, 2018

Hi

Not sure if this is the proper fix, but while testing this I noticed that the local instance is never excluded from the seed list, because we are comparing Instance.Name() with Instance.PodName(), which never leads to the same results, at least in my experiments.

Since the comment on top of the getReplicationGroupSeeds function says It removes the local instance of mysql from the group, it seems a reasonable fix to do.

The updated tests also reflect the logic of excluding the local instance from the seed.

At the moment I'm hesitant to sign the Oracle CLA, I make this commit under the Apache License 2.0, feel free to use it as is, or also just report the changes in your own commit, I don't mind. Please let me know if it's going to be a problem.

Thanks

@gianlucaborello gianlucaborello changed the title Properly exclude the local instance from the seeds list. Properly exclude the local instance from the seeds list Jun 11, 2018
@prydie prydie added the oracle-cla: no Contributor has not yet signed the Oracle Contributor Licence Agreement label Jun 13, 2018
Signed-off-by: Gianluca Borello <g.borello@gmail.com>
@gianlucaborello gianlucaborello force-pushed the exclude-self-from-seeds branch from 8441506 to edb96aa Compare June 13, 2018 15:02
Copy link

@prydie prydie left a comment

Choose a reason for hiding this comment

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

LGTM once CLA processed 👍

@owainlewis owainlewis added oracle-cla: yes Contributor has signed the Oracle Contributor Licence Agreement and removed oracle-cla: no Contributor has not yet signed the Oracle Contributor Licence Agreement labels Jun 26, 2018
@owainlewis owainlewis self-assigned this Jun 26, 2018
@owainlewis owainlewis merged commit 35d540e into oracle:master Jun 26, 2018
@gianlucaborello gianlucaborello deleted the exclude-self-from-seeds branch June 26, 2018 15:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
oracle-cla: yes Contributor has signed the Oracle Contributor Licence Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants