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

Fix: Remove SetMaster Query Expectation from ERS Test #6617

Merged
merged 2 commits into from
Aug 24, 2020

Conversation

PrismaPhonic
Copy link
Contributor

This PR removes an expectation that we can know for sure what the queries will be on replicas in an ERS situation. SetMaster calls are done in the background as a best effort approach, so we can only check for error, and the query list of the new master.

…re because SetMaster calls happen in the background as best effort approach.

Signed-off-by: Peter Farr <Peter@PrismaPhonic.com>
err = goodReplica1.FakeMysqlDaemon.CheckSuperQueryList()
require.NoError(t, err)
err = goodReplica2.FakeMysqlDaemon.CheckSuperQueryList()
require.NoError(t, err)

assert.False(t, newMaster.FakeMysqlDaemon.ReadOnly, "newMaster.FakeMysqlDaemon.ReadOnly set")
// old master read-only flag doesn't matter, it is scrapped
Copy link
Member

Choose a reason for hiding this comment

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

This comment isn't valid any more, let us remove it too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Signed-off-by: Peter Farr <Peter@PrismaPhonic.com>
@deepthi deepthi merged commit ffa2e29 into vitessio:master Aug 24, 2020
@PrismaPhonic PrismaPhonic deleted the fix-ers-test branch August 24, 2020 22:43
@askdba askdba added this to the v8.0 milestone Oct 6, 2020
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