Skip to content

Fix an often failing test by improving the Group FSM robustness.#696

Merged
DimCitus merged 1 commit intomasterfrom
fix/tests
May 6, 2021
Merged

Fix an often failing test by improving the Group FSM robustness.#696
DimCitus merged 1 commit intomasterfrom
fix/tests

Conversation

@DimCitus
Copy link
Copy Markdown
Collaborator

@DimCitus DimCitus commented May 4, 2021

When trying to find if a candidate has already been selected, avoid choosing
a node that is in WAIT_PRIMARY. As we don't change the state of such a node
when it becomes unhealthy, that might lead to strange results when two
failover situations happen one after another.

Also guard demoted to cachingup transitions to only happen when the current
primary is known healthy.

@DimCitus DimCitus added bug Something isn't working Size: S Effort Estimate: Small labels May 4, 2021
@DimCitus DimCitus added this to the Sprint 2021 W18 W19 milestone May 4, 2021
@DimCitus DimCitus requested a review from JelteF May 4, 2021 17:26
@DimCitus DimCitus self-assigned this May 4, 2021
@DimCitus DimCitus changed the title Attempt at fixing an often failing test. Fixing an often failing test by improving the Group FSM robustness. May 5, 2021
@DimCitus DimCitus changed the title Fixing an often failing test by improving the Group FSM robustness. Fix an often failing test by improving the Group FSM robustness. May 5, 2021
When trying to find if a candidate has already been selected, avoid choosing
a node that is in WAIT_PRIMARY. As we don't change the state of such a node
when it becomes unhealthy, that might lead to strange results when two
failover situations happen one after another.

Also guard demoted to cachingup transitions to only happen when the current
primary is known healthy.
@DimCitus DimCitus merged commit ef5cc74 into master May 6, 2021
@DimCitus DimCitus deleted the fix/tests branch May 6, 2021 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Size: S Effort Estimate: Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants