Skip to content

Commit bfb5218

Browse files
authored
Add snapshot stress tests (#78596)
* Add snapshot stress tests 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. * Fix tracked shard count on restore * Fix variable name typos * Stream directly * randomSubsetOf
1 parent 63d663e commit bfb5218

File tree

1 file changed

+1568
-0
lines changed

1 file changed

+1568
-0
lines changed

0 commit comments

Comments
 (0)