-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
[7.x] Add snapshot stress tests (#78596) #78611
Conversation
@DaveCTurner I still have some open backports for the snapshot state machine, this one is probably blocked on those. Working through them today. I can merge this one afterwards! |
Adds `SnapshotStressTestsIT`, a test that performs a wide variety of concurrent snapshot-related operations to explore the corners of the snapshot state machine in a randomized fashion: - indexing docs, deleting and re-creating the indices - restarting nodes - removing and adding repositores - taking snapshots (sometimes partial), cloning them, and deleting them It ensures that these operations should succeed via a system of shared/exclusive locks. None of the operations block. If the necessary locks aren't all available then the operation just releases the ones it has acquired and tries again later. The test completes after completing a certain number of snapshots or after a certain time has elapsed.
8552d0e
to
a832fc1
Compare
Compile failures are the usual stuff, I force-pushed a fixed backport. It'll likely merge fine but may fail until everything else is backported so I'll leave this for you to merge when ready. |
@original-brownbear is this still blocked on anything? |
@DaveCTurner yea but it's on my list for today afternoon :) Sorry, busy times :( |
@elasticmachine update branch |
@DaveCTurner sorry for the delay here, this should be just to merge now. All backported at last :) |
Great, I've done that |
Fixes test failures introduced in #78611
Backports the following commits to 7.x: