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: keep region failover state not changed upon failure #2261

Conversation

MichaelScofield
Copy link
Collaborator

@MichaelScofield MichaelScofield commented Aug 25, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

Change the region failover procedure state transition from owned self to borrowed &mut self. To prevent the state from not being correctly set if any error happened during procedure execution. See the test.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

@WenyXu WenyXu self-requested a review August 28, 2023 04:10
@MichaelScofield MichaelScofield added this pull request to the merge queue Aug 28, 2023
Merged via the queue into GreptimeTeam:develop with commit d8f851b Aug 28, 2023
@MichaelScofield MichaelScofield deleted the fix/region-failover-state branch August 28, 2023 04:52
@WenyXu WenyXu added the O-chaos Found by chaos tests label Oct 14, 2023
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-chaos Found by chaos tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants