test: add improved test for SELECT consistency#7352
Merged
locker merged 1 commit intotarantool:masterfrom Jul 5, 2022
Merged
Conversation
The idea behind the new test is the same as the one used by
vinyl/select_consistency.test.lua: create a space with a few
compound secondary indexes that share the first part, then run
SELECT requests under heavy write load and check that results
match. However, in comparison to its predecessor, the new test
has a few improvements:
1. It generates DML requests in multi-statement transactions.
2. It checks non-unique indexes.
3. It checks multikey indexes.
4. It triggers L0 dumps not by box.snapshot, but by exceeding
the box.cfg.vinyl_memory limit.
5. It starts 20 write and 5 read fibers.
6. It reruns the test after restart to check that recovery works fine.
7. It checks that there's no phantom statements stored in
the space indexes after the test.
8. It runs the test with deferred DELETEs enabled and disabled.
(see box.cfg.vinyl_defer_deletes).
9. It is written in luatest.
The test takes about 20 seconds to finish so it's marked as long run.
Closes tarantool#4251
NO_DOC=test
NO_CHANGELOG=test
c10c6b6 to
a7aefb7
Compare
alyapunov
approved these changes
Jul 5, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The idea behind the new test is the same as the one used by
vinyl/select_consistency.test.lua: create a space with a fewcompound secondary indexes that share the first part, then run SELECT requests under heavy write load and check that results match. However, in comparison to its predecessor, the new test has a few improvements:
box.cfg.vinyl_memorylimit.box.cfg.vinyl_defer_deletes).The test takes about 20 seconds to finish so it's marked as long run.
Closes #4251