Commit graph

4884 commits

Author SHA1 Message Date
Leif Walsh
fd7fd2aaca run more tests now that the drd_mid_* and drd_large_* tests are quicker
refs #4871
closes #5157


git-svn-id: file:///svn/toku/tokudb@45017 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:54 -04:00
Leif Walsh
7a83428999 tighten up timeouts for drd_mid_test_stress* and drd_large_test_stress*
now that they don't take nearly as long
refs #4871


git-svn-id: file:///svn/toku/tokudb@45016 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:54 -04:00
Leif Walsh
0c3a284313 [t:4871] set generated
git-svn-id: file:///svn/toku/tokudb@45015 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:54 -04:00
Leif Walsh
2e1821b199 make scan_op check run_test periodically so it doesn't cause the test to
take forever under valgrind
refs #5157


git-svn-id: file:///svn/toku/tokudb@45013 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:54 -04:00
Yoni Fogel
bb0c2acf6d refs #5153 minor cleanups from review
git-svn-id: file:///svn/toku/tokudb@45006 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:54 -04:00
Yoni Fogel
d0227a5eca refs #4964 Comments/cleanups due to review
git-svn-id: file:///svn/toku/tokudb@45005 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:54 -04:00
Yoni Fogel
2b1c108a6f refs #5154 removed commented out code
git-svn-id: file:///svn/toku/tokudb@45004 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:54 -04:00
John Esmet
56fd009567 [t:5153] fix the error handling code for toku_ltm_get_lt() and better explain what the client contract is for the on_create and on_close callbacks.
the idea is you should only pass an on_create callback if there is also an on_close callback, and vice-versa. the on_create callback is called if
the lock tree is created and the on_close callback is called only if the on_create callback was actually called, either because of a user close
of the locktree or by an error path in toku_ltm_get_lt().

we never assume that either of these callbacks are non-null and we know both can be called at most once.


git-svn-id: file:///svn/toku/tokudb@45002 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:54 -04:00
Leif Walsh
8bd5423b51 syntax error in run.stress-tests.py
git-svn-id: file:///svn/toku/tokudb@44991 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:54 -04:00
Leif Walsh
99dd0a1cb9 don't run test_stress_openclose.tdb on existing environments
git-svn-id: file:///svn/toku/tokudb@44990 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:54 -04:00
Yoni Fogel
9cec4ca1f9 closes #5149 Skips taking MO lock for readonly transactions on
commit, abort, and prepare

git-svn-id: file:///svn/toku/tokudb@44989 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:54 -04:00
Yoni Fogel
0fca2e35d7 refs #4964 Cleanups during review
Trying to disable syncs during child txns does nothing, also for parents when doing a dbremove
Removed pointers
Cleanup with regards to indentation/style

git-svn-id: file:///svn/toku/tokudb@44988 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:54 -04:00
Leif Walsh
e58a55df2a update run.stress-tests.py to avoid running test_stress4.tdb on already
stressed envs


git-svn-id: file:///svn/toku/tokudb@44980 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:54 -04:00
Zardosht Kasheff
de706bd5d8 closes #5146, fix test and fix bug
git-svn-id: file:///svn/toku/tokudb@44973 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:54 -04:00
TokuBuild
3d9bf660f6 small fix to fractal tree test script
git-svn-id: file:///svn/toku/tokudb@44972 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Zardosht Kasheff
cefaf7d0b1 refs #5146, add test exposing bug
git-svn-id: file:///svn/toku/tokudb@44970 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Zardosht Kasheff
9083c11d40 [t:5144], do not prepare transactions that need to be aborted
git-svn-id: file:///svn/toku/tokudb@44967 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Leif Walsh
57d1435693 fix some small things in run.stress-tests.py
git-svn-id: file:///svn/toku/tokudb@44962 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Leif Walsh
4e823bac63 fix path error in run.stress-tests.py
git-svn-id: file:///svn/toku/tokudb@44961 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Leif Walsh
f0f0ee04af fix syntax error in run.stress-tests.py when checking for icc
git-svn-id: file:///svn/toku/tokudb@44960 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Leif Walsh
672571959f change directory that run.stress-tests.py looks for old envs in by default
git-svn-id: file:///svn/toku/tokudb@44959 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Leif Walsh
11fbb2f2ef fix run.stress-tests.py to work with cmake (compilation fix). refs #4871.
git-svn-id: file:///svn/toku/tokudb@44958 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
John Esmet
5a6cd59d91 #refs 5133 merge undo-do algorithm changes to main. now, we read a row from the source db AND gather up the leaf entrie's provisional data in the cursor callback, which makes it atomic with respect to commit and abort on that DB. had to fix a few tests after changing some leaf entry signatures
git-svn-id: file:///svn/toku/tokudb@44949 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Yoni Fogel
f5d76ac4a9 refs #4964 cleanup during review
git-svn-id: file:///svn/toku/tokudb@44940 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Yoni Fogel
c03782608f refs #5066 Move a free out of the txn_manager_lock
git-svn-id: file:///svn/toku/tokudb@44937 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Leif Walsh
888b9f83ab [t:4871] limit svn communication in run.fractal.tree.tests.bash
git-svn-id: file:///svn/toku/tokudb@44919 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Leif Walsh
82ae5280df [t:5136] add "NVALGRIND=1" to COMPILE_DEFINITIONS_RELEASE
git-svn-id: file:///svn/toku/tokudb@44902 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Yoni Fogel
f7a5890b27 [t:5123] Fix memory leak in test
git-svn-id: file:///svn/toku/tokudb@44899 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
John Esmet
fb72102eeb close[t:5134] le_cursor api cleaned up, followed up on a TODO to get rid of the DB parameter from is_key_right (and improved its name too) by using a fake_db in the le_cursor plus the new toku_ft_get_descriptor() api to grab a descriptor reference. refactored some tests to get it all compiling. LE and hot indexer tests pass
git-svn-id: file:///svn/toku/tokudb@44895 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Zardosht Kasheff
78c88095ed refs #5130, remove test_db_change_xxx from BDB tests
git-svn-id: file:///svn/toku/tokudb@44893 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Yoni Fogel
b2129ebb7b [t:5064] Closes #5064 Move most of the work of creating xids (including malloc) out of the txn_manager_lock
git-svn-id: file:///svn/toku/tokudb@44892 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Zardosht Kasheff
665f1acff4 refs #5130, refs #4870, merge changes of adding db->change_XXX functions to main
git-svn-id: file:///svn/toku/tokudb@44890 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Leif Walsh
357a2ae13e [t:5077] add a comparison function that compares 8 byte ints. closes #5077.
git-svn-id: file:///svn/toku/tokudb@44885 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Leif Walsh
5e21f02837 [t:5132] cast pthread_t through uintptr_t in order to print it in a way that's portable between linux and osx. closes #5132
git-svn-id: file:///svn/toku/tokudb@44882 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Leif Walsh
60f6d80f4c [t:5132] remove void * cast to at least fix on linux
git-svn-id: file:///svn/toku/tokudb@44874 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Leif Walsh
c5fe132a9c [t:5131] closes #5131.
git-svn-id: file:///svn/toku/tokudb@44864 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Leif Walsh
4a505f74c4 [t:5078] closes #5078.
also adds csv and tsv output formats (and some work on gnuplot)

git-svn-id: file:///svn/toku/tokudb@44863 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
John Esmet
5c4b1d60ce close[t:5128] updating a descriptor now has two parts: user API that passes a FT and descriptor, and a low layer API that takes those two plus an explicit descriptor. we use the low layer one for deserialization code that wants to upgrade a descriptor for an FT that is not fully opened yet (and thus whose FT does not have a valid cachefile yet). this seems to be a clean enough solution, since it helps some upgrade code do non-standard stuff.
most importantly, loader-stress-test3 no longer fails by segfaulting on ft->cf->fd


git-svn-id: file:///svn/toku/tokudb@44839 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Leif Walsh
d038eef712 [t:4871] silly fix: parameter number test for 1426
git-svn-id: file:///svn/toku/tokudb@44837 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Leif Walsh
7a06c949f0 [t:4871] remove the need for the pre-dumped file for test1426, since we removed it from the repo
git-svn-id: file:///svn/toku/tokudb@44836 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Leif Walsh
bd5f5653c6 [t:5094] don't call toku_ydb_init or toku_ydb_destroy just because we're linking statically
git-svn-id: file:///svn/toku/tokudb@44835 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Leif Walsh
a2e135d4dd [t:4838] remove test_locktree_close from bdb tests
git-svn-id: file:///svn/toku/tokudb@44834 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Leif Walsh
64b7587bed [t:4871] fix ipo error for lock tree tests
git-svn-id: file:///svn/toku/tokudb@44829 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
John Esmet
0a1d95065c [t:4838] the locktree now opens its own ft handle when created to ensure that the ft stays in memory so long as the lock tree is in memory. we use an on_create and on_destroy callback to keep the txn/ft logic out of the locktree. the api for toku_ltm_get_lt is a little hairy now. a better solution may come in the future. for now, the original failing test passes.
git-svn-id: file:///svn/toku/tokudb@44819 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Leif Walsh
d47220c827 [t:4686] [t:5123] [t:5062] merge #4686 to main, includes fix for #5123. closes #4686.
git-svn-id: file:///svn/toku/tokudb@44814 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
John Esmet
8e7bc18ed8 close[t:5124] use a cleaner way of access an FT_HANDLE's descriptor pointers at the ydb layer. comment the ft API, too.
git-svn-id: file:///svn/toku/tokudb@44811 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
John Esmet
99568e9652 [t:5113] carefully document a non-obvious contract requirement for change descriptor. clients may ONLY update a FT's cmp descriptor if it's the first operation done after open, before any reads or writes. further, remove the test - it's user error.
git-svn-id: file:///svn/toku/tokudb@44804 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Rich Prohaska
4f5584d7fe #4536 build examples with shared or static tokudb libs refs[t:4536]
git-svn-id: file:///svn/toku/tokudb@44780 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
John Esmet
6418c5c80f [t:5113] spruce up the default parameters and put a reader-writer lock around the global variable used in the assertion, so we know for certain we're not just racing to read THAT variable
git-svn-id: file:///svn/toku/tokudb@44778 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
John Esmet
f75af8ab78 [t:5113] first commit the test that exposes the bug
git-svn-id: file:///svn/toku/tokudb@44777 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00