Skip to content

Fix: Remove SetMaster Query Expectation from ERS Test#6617

Merged
deepthi merged 2 commits intovitessio:masterfrom
planetscale:fix-ers-test
Aug 24, 2020
Merged

Fix: Remove SetMaster Query Expectation from ERS Test#6617
deepthi merged 2 commits intovitessio:masterfrom
planetscale:fix-ers-test

Conversation

@PrismaPhonic
Copy link
Copy Markdown
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>
@PrismaPhonic PrismaPhonic requested a review from deepthi August 24, 2020 20:14
@PrismaPhonic PrismaPhonic requested a review from sougou as a code owner August 24, 2020 20:14
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
Copy Markdown
Collaborator

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
Copy Markdown
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>
@PrismaPhonic PrismaPhonic requested a review from deepthi August 24, 2020 21:06
@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