-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new test case and amended assertion to repro issue #467
Rework large_inserts_bugs_stress test to generate assertion failure. This commit slightly enhances do_inserts_n_threads() in this test case to cajole an assertion seen from BTree split code, or thereabouts: OS-pid=1839020, Thread-ID=5, Assertion failed at src/trunk.c:5521:trunk_split_leaf(): "(num_leaves + trunk_num_pivot_keys(spl, parent) <= spl->cfg.max_pivot_keys)". num_leaves=6, trunk_num_pivot_keys()=9, cfg.max_pivot_keys=14 The changes are: - Provide options to use same / diff start-key for each thread. - Increase TEST_KEY_SIZE to 30 and TEST_VALUE_SIZE to 256 bytes. - Provide an option to either generate sequential values or to use fully-packed values for each key. The latter seems to be the condition that triggers this assertion. Many diff variations of test cases are provided in this one large framework. See large_inserts_bugs_stress_test --list for names of individual test cases.
- Loading branch information
Showing
5 changed files
with
620 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.