Barry Perlman
593253739c
[t:2781] Close 2781, add test programs to verify fix.
...
When processing suppress_rollback log entry, associate brt with transaction.
git-svn-id: file:///svn/toku/tokudb@21894 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:20 -04:00
Bradley C. Kuszmaul
5fcfafc691
Overactive assertion. Refs #2759 . [t:2759]
...
git-svn-id: file:///svn/toku/tokudb@21573 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:20 -04:00
Bradley C. Kuszmaul
c49d7a8c0c
The first loader gets 1/2 of cachetable memory.
...
* That's 2/3 of 3/4, which is calculated as 1/4 is unreservable. The loader asks for 2/3 of what's reservable, getting one half.
The second loader gets 1/6 of cachetable memory.
* That's 2/3 of 1/4: The loader asks for 2/3 of what's reservable. 1/2 has been reserved. 1/4 is unreservable. 1/4 is reservable. 2/3 of 1/4 is 1/6.
The third loader gets 1/18 of cachetable memory.
* That's 2/3 or 1/12. (1/4 is unreservable. 1/2 was reserved by the first loader. 1/6 by the second. That leaves 1/12)
Generally the next one gets 1/3 of what the previous one got.
Refs #2759 . [t:2759]
git-svn-id: file:///svn/toku/tokudb@21564 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:19 -04:00
Bradley C. Kuszmaul
f635f4d458
Merge the fix for #2755 and #2759 to main. [t:2755] [t:2759]
...
{{{
svn merge -r21499:21502 https://svn.tokutek.com/tokudb/toku/tokudb.2755
}}}
.
git-svn-id: file:///svn/toku/tokudb@21503 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:19 -04:00
Rich Prohaska
c37567705f
#2738 refs[t:2738] merge dbufio bug fix to main
...
git-svn-id: file:///svn/toku/tokudb@21260 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:19 -04:00
Rich Prohaska
76dcd3fe21
2738 refs[t:2738] test case for the double buffer hang
...
git-svn-id: file:///svn/toku/tokudb@21217 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:19 -04:00
Rich Prohaska
1a65ba1d80
#2723 refs[t:2723] fix the slow control-c reaction in the brtloader's write to brt function
...
git-svn-id: file:///svn/toku/tokudb@21103 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:19 -04:00
Bradley C. Kuszmaul
dfdaee296d
Candidate fix for #2730 (the race in the loader and the io-thread where they glare at each other). Refs #2730 . [t:2730]
...
git-svn-id: file:///svn/toku/tokudb@21082 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:19 -04:00
Rich Prohaska
6b09687c83
#2718 refs[t:2718] free the big buffer attached to the temp files when they are closed
...
git-svn-id: file:///svn/toku/tokudb@21045 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:19 -04:00
Rich Prohaska
8a95226d84
#2717 refs[t:2717] fix the brtloader subtree estimates
...
git-svn-id: file:///svn/toku/tokudb@21040 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:19 -04:00
Rich Prohaska
5e99cd713c
refs[t:2717] dump the subtree estimates
...
git-svn-id: file:///svn/toku/tokudb@21032 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:19 -04:00
Bradley C. Kuszmaul
fa229ab979
Fix the cachetable-race so that it doesn't run in BDB and compiles under windows. Fixes #2699 , #2698 . close[t:2699] close[t:2698].
...
git-svn-id: file:///svn/toku/tokudb@20902 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:18 -04:00
Yoni Fogel
7d2b82be13
[t:2692] Restore "write_log_files" check to fsync log on checkpoints
...
git-svn-id: file:///svn/toku/tokudb@20884 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:18 -04:00
Yoni Fogel
5134631d15
closes[t:2692] Fix two races that helgrind reports.
...
Technically neither one causes any problems.
git-svn-id: file:///svn/toku/tokudb@20881 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:18 -04:00
Bradley C. Kuszmaul
aca0557856
Tell helgrind not to complain about the toku_checkpointing_user_status. Refs #2684 . [t:2684]
...
git-svn-id: file:///svn/toku/tokudb@20879 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:18 -04:00
Bradley C. Kuszmaul
e43af77fc6
Create a test to trigger #2684 (the race found in checkpointing in loader-stress-test). [t:2684]
...
git-svn-id: file:///svn/toku/tokudb@20877 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:18 -04:00
Yoni Fogel
5cd73a5828
[t:2641] Fix build (false positive uninitialized variables warning)
...
git-svn-id: file:///svn/toku/tokudb@20866 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:18 -04:00
Yoni Fogel
a9c554b353
[t:2641] Merge DB_READCOMMITTED bugfix (r20839) to main.
...
git-svn-id: file:///svn/toku/tokudb@20863 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:18 -04:00
Rich Prohaska
132926232d
refs[t:2683] fix the newbrt/tests/Makefile rule 2b, should be 3a
...
git-svn-id: file:///svn/toku/tokudb@20857 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:18 -04:00
Rich Prohaska
e017a69683
fix gcc 4.1.2 build on linux
...
git-svn-id: file:///svn/toku/tokudb@20850 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:18 -04:00
Bradley C. Kuszmaul
53b88b1fb1
Fix #2683 . Make the big brtloader-test-extractor tests not use valgrind. close[t:2683]
...
git-svn-id: file:///svn/toku/tokudb@20849 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:18 -04:00
Yoni Fogel
6b16623e8a
Fix windows compile.
...
Poison __sync_fetch_and_add and __sync_add_and_fetch, wrote toku wrappers and windows equivalents
fix bug in toku_sync_fetch_and_(in|de)crement_int32 where it returned result instead of original
git-svn-id: file:///svn/toku/tokudb@20848 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:17 -04:00
Rich Prohaska
e5ce7dfb2a
refs[t:2681] omit the test that crashes cilkscreen
...
git-svn-id: file:///svn/toku/tokudb@20842 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:17 -04:00
Yoni Fogel
383e896608
[t:2561] Bugfix in backwards compatibility code. Enums cannot be used for CPP directives, which broke windows build
...
git-svn-id: file:///svn/toku/tokudb@20797 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:17 -04:00
Yoni Fogel
c9b2b066dd
[t:2561] Merge tokudb.2561b to main. Disabled auto-upgrade and auto-upgrade tests
...
git-svn-id: file:///svn/toku/tokudb@20778 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:17 -04:00
Rich Prohaska
c5bad31abf
closes[t:2656] run some cilkscreen tests
...
git-svn-id: file:///svn/toku/tokudb@20753 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Rich Prohaska
16cbf13ca2
closes[t:2445] fsync dirs after file creation
...
git-svn-id: file:///svn/toku/tokudb@20735 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Rich Prohaska
d694dbaf93
closes[t:2665] quiet logcursor-bad-checksum
...
git-svn-id: file:///svn/toku/tokudb@20722 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Rich Prohaska
9d695b7990
closes[t:2666] quiet recovery-cend-cbegin
...
git-svn-id: file:///svn/toku/tokudb@20721 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Rich Prohaska
85fbe869d1
closes[t:2667] quiet recovery-empty
...
git-svn-id: file:///svn/toku/tokudb@20719 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Bradley C. Kuszmaul
c74c406581
Fix #2664 . (cachetable-scan should be quiet). close[t:2664]
...
git-svn-id: file:///svn/toku/tokudb@20713 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Yoni Fogel
10d5d03fac
[t:2662] Fix checkpoint bug where re-ordered writes before fsync can cause
...
a corrupt dictionary.
Do an extra fsync.
git-svn-id: file:///svn/toku/tokudb@20697 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Rich Prohaska
4952a05f32
refs[t:2656] run some cilkscreen tests
...
git-svn-id: file:///svn/toku/tokudb@20693 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Rich Prohaska
9d292108f8
closes[t:2637] common brtloader error injector source
...
git-svn-id: file:///svn/toku/tokudb@20687 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Dave Wells
85bfc804f0
remove cilk_spawn that is within cilk_for loop
...
git-svn-id: file:///svn/toku/tokudb@20684 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Rich Prohaska
e6a7af95a3
refs[t:2654] fix a NULL pointer deref found by valgrind brtloader-test-open
...
git-svn-id: file:///svn/toku/tokudb@20672 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Rich Prohaska
3f6fe2beac
refs[t:2656] fix some data races in the brtloader tests
...
git-svn-id: file:///svn/toku/tokudb@20660 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Rich Prohaska
6d894d3f94
refs[t:2656] cilkscreen some brtloader-test-writer-errors
...
git-svn-id: file:///svn/toku/tokudb@20658 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Rich Prohaska
d86d1e5361
closes[t:2659] fix the data race in the finish_primary_rows_internal function. found by cilkscreen ./brtloader-test-extractor -s
...
git-svn-id: file:///svn/toku/tokudb@20657 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Rich Prohaska
650e2c0079
refs[t:2656] cilkscreen some brtloader tests
...
git-svn-id: file:///svn/toku/tokudb@20656 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Bradley C. Kuszmaul
54490d3c06
Simplify structures to keep track of whether data in an index is sorted. Refs #2654 . [t:2654].
...
git-svn-id: file:///svn/toku/tokudb@20644 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Bradley C. Kuszmaul
57fb43c9c5
Add structures to keep track of whether data in an index is sorted. We aren't maintaining it properly yet, but everything should work since we aren't using it. Refs #2654 . [t:2654].
...
git-svn-id: file:///svn/toku/tokudb@20640 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:15 -04:00
Rich Prohaska
9e02290285
closes[t:2642] fix a mem leak in the brtloader found with the cleanup test
...
git-svn-id: file:///svn/toku/tokudb@20627 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:15 -04:00
Rich Prohaska
5518290137
closes[t:2591] fix the brtloader destroy to avoid the mutex when not yet initialized
...
git-svn-id: file:///svn/toku/tokudb@20608 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:15 -04:00
Rich Prohaska
4ee75d917c
closes[t:2650] test the brtloader extractor with various input rows
...
git-svn-id: file:///svn/toku/tokudb@20570 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:15 -04:00
Rich Prohaska
c62f8829e1
closes[t:2650] test the brtloader extractor with various input rows
...
git-svn-id: file:///svn/toku/tokudb@20569 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:15 -04:00
Rich Prohaska
6af1a32e4e
refs[t:2650] verify the temp files created by the extractor
...
git-svn-id: file:///svn/toku/tokudb@20558 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:15 -04:00
Rich Prohaska
42fdb90153
refs[t:2591] mutex destroy called on an uninitalized mutex
...
git-svn-id: file:///svn/toku/tokudb@20557 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:15 -04:00
Bradley C. Kuszmaul
d14326cc0e
brtloader.c is now 96.61% of lines and 87.13% of branches. [t:2647] Refs #2647 .
...
git-svn-id: file:///svn/toku/tokudb@20539 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:15 -04:00
Rich Prohaska
543dd95cdb
closes[t:2648] improve the brtloader writer coverage
...
git-svn-id: file:///svn/toku/tokudb@20538 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:15 -04:00