This repository was archived by the owner on Aug 2, 2021. It is now read-only.
-
Couldn't load subscription status.
- Fork 110
forky: improve shard offset acquisition #2137
Closed
Closed
Changes from all commits
Commits
Show all changes
90 commits
Select commit
Hold shift + click to select a range
dbb7614
wip clean
acud 33414c5
cleanup
acud 3b89055
forky: reinstate shard field (de)serialisation
acud d7a8fb9
forky: add NextShard tests
acud 0744fd4
tests failing
acud f616fff
remove t.run
acud c3d92c1
remove println
acud afad773
fix build
acud 6ec5f97
forky: address some PR comments
acud 06a2466
forky/leveldb: instate free slot serialisation
acud a74470e
fix build
acud c5cb5b7
wip persistence test
acud 0b24c4b
wip test
acud 9ca5025
add sorting unit test
acud 699940c
add test desc
acud 9f2806c
forky: add free counter persistence e2e test, shard selection logic
acud b0a2954
pick the smallest shard on no free slots
acud 0a72e7c
fix build
acud c8fb4d7
next shard unit test
acud f818729
cleanup, fix free slots in leveldb implementation
acud aa2b1b0
fix build
acud 50db06f
add metrics for debugging
acud e7bcded
fix build
acud b8c1fef
pessimistic locking
acud fe9c14b
Revert "pessimistic locking"
acud bebdd45
reenable tests
acud 8bcaabb
try something
acud 2b791ad
Revert "try something"
acud 5cfb4a5
remove caching, use mem
acud c72a6c3
remove free slots slice
acud 88ab291
Revert "Revert "pessimistic locking""
acud 92886fe
add metrics
acud 8ec201a
fix has metrics
acud 6624115
storage/fcds/test: fix NewFCDSStore path handling
janos 00d4c5a
instrument till you drop
acud 48143c6
still works
acud 193a30a
getting there
acud 231f4f7
remove annoying prints
acud 08ed173
restore gc logic, still ok
acud db304d8
reinstate reclaimed check
acud ae3886c
cleaup
acud e7a7ae2
remove fcds lock, still green
acud 78a12e5
still green
acud 6961a6e
mem passing, leveldb broken
acud 20c729e
leveldb kind of stable, mem ok
acud ed0f2ca
mem ok
acud 8b6d42f
still ok
acud 7e546ca
still ok
acud 468c061
green still
acud 9661248
janos version of the test
acud e23853c
Revert "janos version of the test"
acud ba10c6d
pull lock up
acud aa8d825
mega ugly but works
acud 4541c9f
clean
acud 86b3a13
prevent double puts into forky for existing chunks
acud bbaf1c2
wip cleanup
acud 387bbc0
wip cleanup
acud 18855fb
more house cleaning
acud df3a326
maintain free slots in memory, persist and load from leveldb on batch…
acud 84acb66
fix build
acud b82eea4
randomize next free shard to reduce contention
acud e4951ec
wip return locked shard directly
acud d2e73d9
remove mem test
acud 238c673
try out cancellable offset
acud 95e257d
dont mock me
acud f4fc2c0
switch back to leveldb
acud 39daa0c
puttopgccheck
acud 2fe7596
forky: remove offset deletion from Set since it should already be del…
acud da85d55
forky: simplify set, change free offset method
acud 4cba21a
cleanup
acud 0df8e67
cleanup
acud 7d9156c
cleanup
acud e3d8ccf
cleanup tests
acud 9050b96
cleanup
acud ece3c7d
cleanup
acud 6068e92
cleanup test vectors
acud 1e0589f
Merge branch 'fcds' into fcds-teenage-mutants
acud 4d4f809
remove mutex
acud e6e8a71
dont test for no grow on mock
acud 99ac34a
remove error\
acud 219050e
forky: address pr comments
acud 6fb35e5
forky: address pr comments
acud 4700187
Add benchmark to compare to badger
jmozah 7055489
Ignoring setup stage in benchmark timings
jmozah 7771a35
add benchmark from badger branch
acud d098a92
fcds_test.go
acud d259aa0
change to 50k-500k-50lakh
acud 315e5cd
better write testing
acud 77b0c85
fix build
acud 51ff0d7
on par
acud 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
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.
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.
Why is this defer removed?
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.
the idea was not to hold the lock beyond the specific time that the shard is used (i.e. to not hold it for the metric increment or the chunk constructor)
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 will put it back as a defer statement