-
Notifications
You must be signed in to change notification settings - Fork 874
Add 9 bytes of metadata to FlatKV store #3163
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
Open
cody-littley
wants to merge
143
commits into
main
Choose a base branch
from
cjl/9-byte-metadata
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,663
−1,292
Open
Changes from all commits
Commits
Show all changes
143 commits
Select commit
Hold shift + click to select a range
7c5e216
Created a cache for flatKV.
4a404ee
checkpoint
d36e825
incremental progress
2ccbe62
address feedback
f412e85
more fixes
e310037
bugfix
cf1071c
wire in cache
11232ff
Merge branch 'main' into cjl/flatkv-cache
a8c1c75
incremental improvements
221d114
checkin
8eca079
Moved where the cache sits
267feae
bugfix
50b0be6
Batch update the cache
2ca00d6
Add batch read to cache
8f8534a
Add batch get to db interface
23c0277
integrate batch reads
02d3ca1
wire in cache
7ee1b08
Introduce work pool, size caches differently
20c70c3
bugfix
b714789
Add unit constants
cc9d41d
refactor threading utils
53b2bd8
cleanup
c10e0cd
Cleanup, fix race condition
04f40fa
cleanup
b4e4d2c
cleanup
e53fefa
use pool
438fc8d
fix ctx lifecycle
19a8a19
Merge branch 'main' into cjl/flatkv-cache
23440f6
rename package
4ecc8fd
Clean up string copies
7a315c6
simplify gc
a3f3907
better error handling
f255b87
use config to configure cache params
cf0a73d
Allow flatkv config to be set in tests
0b34737
tweak config
452aa4d
incremental progress
1c804a8
move data dir into config
663b2ea
fix config file
bb530b5
cleanup
04daf75
move pebble metrics to proper location
354818e
clean up metrics
b1574ac
updated dashboard
07e071c
fix histograms
d090796
threading tests
dfd92c1
test lru queue
f751a9b
unit tests for shard
7b5538e
cache tests
dc8d0c9
moar unit tests
e9cc9ca
cleanup
c7a418c
Merge branch 'main' into cjl/flatkv-cache
087fd0f
Merge branch 'main' into cjl/flatkv-cache
eb9bc51
Merge branch 'main' into cjl/flatkv-cache
cea0ebb
unit test fixes
e58bec2
fix hash bug
c3f34b1
fixed path bug
111459f
Helper files for flatKV cache
d40395f
add missing struct
c8e85d2
Merge branch 'main' into cjl/cache-auxilery
ed7e4b6
made suggested changes
5c46647
fix tests
be0d4f5
Merge branch 'main' into cjl/flatkv-cache
9ff2199
Merge branch 'cjl/cache-auxilery' into cjl/flatkv-cache
bb2fe7e
Maded suggested change to cache structure
f4b8326
rename cache -> dbcache to avoid gitignore
4b2247b
Helper files for the flatKV cache implementation
36d7328
bugfix
d759a9b
Merge branch 'cjl/cache-auxilery-2' into cjl/flatkv-cache
4ba242b
fix merge problems
e19a998
refactor API
94ae673
made suggested changes
ed10a26
made suggested changes
81dfd46
fix bug
480839d
Merge branch 'main' into cjl/flatkv-cache
7835683
Implement a standard cache.
950197c
cleanup
cff96ab
Merge branch 'main' into cjl/cache-impl
003fcc9
made suggested changes
a208a1b
made suggested change
157a600
made suggested changes
b41639f
fix unit test
fe31475
fix unit test
0702197
Merge branch 'cjl/cache-impl' into cjl/flatkv-cache
6d435f5
Merge branch 'main' into cjl/flatkv-cache
64f8530
fixed merge bugs
d9c5fc1
fix teardown race
14593ec
Add logging metric, clean up log files before/after run
2d88076
fix unit test
ccad074
fix unit tests
38ffd35
fix unit test
f143d30
made suggested changes
a18fd93
config changes
34e711d
made suggested changes
b596f89
Merge branch 'main' into cjl/flatkv-cache
61d1f4d
rearranged files
fa351b3
basic data structures
33378ce
bugfix
f8d0113
Basic impl and unit tests
d9c27bc
config
55c871f
block generator
d59bfab
created struct for account data
94ebc9a
added structs
9a52335
Merge branch 'cjl/flatkv-cache' into cjl/9-byte-metadata
9dab6ca
incremental progress
3443a06
cleanup
a402238
don't ignore errors from batch get
b18bc4e
Merge branch 'main' into cjl/flatkv-cache
1a04e5e
Merge branch 'cjl/flatkv-cache' into cjl/9-byte-metadata
e8bf28a
incremental progress
73b6d36
cleanup
fbb3041
cleanup
cd59319
incremental progress
8ce84b1
convert code data to new format
ee30ca9
made suggested changes
c8fd5ec
Merge branch 'main' into cjl/flatkv-cache
8094375
Merge branch 'main' into cjl/flatkv-cache
c2c0552
Merge branch 'cjl/flatkv-cache' into cjl/9-byte-metadata
51560a3
incremental progress
faf4871
make suggested change to pool
2760580
Merge branch 'cjl/flatkv-cache' into cjl/9-byte-metadata
10172fd
started big refactor
aa3ef36
incremental progress
cdc1a7d
incremental progress
95b392c
fix parsing
0dfb271
fix store read
9c8454f
Merge branch 'main' into cjl/flatkv-cache
872b0a6
fix merge problem
80487c3
Merge branch 'cjl/flatkv-cache' into cjl/9-byte-metadata
1aef1c3
bugfixes
ea8b01e
fix compile issues
1eccb80
Merge branch 'main' into cjl/9-byte-metadata
caadeef
lint
aab88b1
test cleanup
4618c0a
clean up interface
2873025
check for bad keys
a1a46d7
better handling of variable sized data
8bb29c7
Improve codehash serialization
2050921
cleanup
8be4dfa
Merge branch 'main' into cjl/9-byte-metadata
d9a981d
fix things that broke with merge
309fb33
revert unecessary changes
b9e1d2f
fix unit tests
2b0fdd7
fix unit test
e80ff1e
Merge branch 'main' into cjl/9-byte-metadata
Kbhat1 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not big fan of having to return an extra error for each get/has call in this layer, I think if we can avoid, we should not return any error. If there's a database internal error, we can choose to panic out.