Fix vinyl/compact test
The vinyl/compact issues two snapshots and expects that there will be two runs after it, then it keeps waiting until compaction merges them. There is a race condition intrinsic to this test - compaction might have finished before the test checks that there are exactly two runs. To eliminate it, let's set the test index's compact_wm parameter to 3 and add one more snapshot to trigger compaction. Since currently, it's impossible to modify vinyl options dynamically, this patch moves compact_wm to index options where page_size and range_size reside. Closes #1758
Showing
- src/box/key_def.cc 2 additions, 0 deletionssrc/box/key_def.cc
- src/box/key_def.h 5 additions, 0 deletionssrc/box/key_def.h
- src/box/lua/schema.lua 3 additions, 0 deletionssrc/box/lua/schema.lua
- src/box/vinyl.c 1 addition, 13 deletionssrc/box/vinyl.c
- test/vinyl/compact.result 10 additions, 2 deletionstest/vinyl/compact.result
- test/vinyl/compact.test.lua 4 additions, 2 deletionstest/vinyl/compact.test.lua
Loading
Please register or sign in to comment