Skip to content

Fix shutdown-metadata-related flakiness in SnapshotStressTestsIT #109049

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

Conversation

DaveCTurner
Copy link
Contributor

@DaveCTurner DaveCTurner commented May 26, 2024

We must not mark the master for shutdown since this triggers a master
failover, and we must keep hold of all the permits until the mark/unmark
sequence is complete. Also adds some logging around shutdown metadata
manipulation.

Found while investigating #108907 although this doesn't fix that issue.

We must not mark the master for shutdown since this triggers a master
failover, and we must keep all the blocks in place until the mark/unmark
sequence is complete. Also adds some logging around shutdown metadata
manipulation.

Found while investigating elastic#108907 although this doesn't fix that issue.
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v8.15.0 labels May 26, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label May 26, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Member

@ywangd ywangd left a comment

Choose a reason for hiding this comment

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

LGTM

Good catch!

@DaveCTurner DaveCTurner merged commit 61bd21c into elastic:main May 27, 2024
15 checks passed
@DaveCTurner DaveCTurner deleted the 2024/05/26/SnapshotStressTestsIT-shutdown-metadata-fixes branch May 27, 2024 07:12
@DaveCTurner DaveCTurner restored the 2024/05/26/SnapshotStressTestsIT-shutdown-metadata-fixes branch June 17, 2024 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. >test Issues or PRs that are addressing/adding tests v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants