-
Notifications
You must be signed in to change notification settings - Fork 10.7k
M-map full chunks of Head from disk #6679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 43 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
e5e4ca6
HeadReadWriter for writing and mmapping Head chunks
e9e3ec9
Mmap chunks in Head
c812d79
Use pool for chunks
46a5ef1
Replay the chunks on disk
527c0d3
Merge remote-tracking branch 'upstream/master' into mmap-chunks
e8225bf
Make HeadReadWriter local to Head and fix tests
5766f3e
Cleanup, fixes and unit tests
77ba7f0
Fix review comments
96b0823
Merge remote-tracking branch 'upstream/master' into mmap-chunks
386ef22
Fix review comments
9bdd4c7
Add repair for corrupt segment files
5790095
Get rid of WAL interface and noopWAL; take chunks dir in NewHead instead
df0c67a
Merge remote-tracking branch 'upstream/master' into mmap-chunks
e4444b5
Fix wrong deleted chunks counting
b5f9bb5
Test for HeadReadWriter repair
e42ee47
Merge remote-tracking branch 'upstream/master' into mmap-chunks
0c577d6
Fix review comments
99d8892
Merge remote-tracking branch 'upstream/master' into mmap-chunks
5709867
Merge remote-tracking branch 'upstream/master' into mmap-chunks
c8f767b
Fixes after merging master
8741e7b
Attempt fixing tests for windows
88fd825
Replay num samples of chunks with mmap chunks
5781812
Attempt fixing tests for windows
b7389b5
Some renaming and added numSamples in IterateAllChunks
fd4521d
Merge remote-tracking branch 'upstream/master' into mmap-chunks
a9bfcc1
Fix review comments
6cd8d40
Merge remote-tracking branch 'upstream/master' into mmap-chunks
502d69d
Fix review comments
f7dc9ed
Merge remote-tracking branch 'upstream/master' into mmap-chunks
b99415c
Fix failing tests
75d0fd7
Address review comments
37a987f
Add test for PostWALRepairRecovery
f90f530
Address feedback
4b5fc07
Fix chunks metric when replaying mmapped chunks
427f79f
Register metrics
179fb9c
Add out of bound metric and add test for it
5733830
Replay WAL only once by keeping map of mmapped chunks
cbb3508
Fix Head mint maxt updates on setting mmap chunks. Fix metrics.
e9417b0
Include mmapped chunks in TestHead_WALMultiRef
2e2068e
Rename Repair to DeleteCorrupted
9f2974d
Fix review comments
eb2e6c1
Fix FlushWAL test in windows
971f450
Merge remote-tracking branch 'upstream/master' into mmap-chunks
6ec3f23
Add a TODO for the panic in getting mmapped chunks
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.