Aayush Rajasekaran
3b3a35ee47
Add missing locks to Get()
2022-01-12 21:50:09 -05:00
Steven Allen
ab3c1c507e
correctness fixes for the autobatch blockstore
...
1. Simplify shutdown and make it idempotent by using a context.
2. Make sure `Flush` actually _fully_ flushes if the previous flush failed.
3. Don't clear the flush batch if flushing fails.
2022-01-12 19:09:21 -05:00
Aayush Rajasekaran
398f0766ba
Don't lock in Get
2022-01-12 18:53:57 -05:00
Aayush Rajasekaran
13d9cda20e
Address review part 2
2022-01-12 18:53:53 -05:00
Aayush Rajasekaran
98ad7580f8
Address review
2022-01-12 18:53:47 -05:00
Aayush Rajasekaran
4f26f67b3b
Support faster Get, retry flushes on error
2022-01-12 18:53:34 -05:00
Aayush Rajasekaran
2ba131e802
Use channels to trigger flushes in a dedicated goroutine
2022-01-12 18:53:29 -05:00
Aayush Rajasekaran
b628958cf6
implement stubs
2022-01-12 18:53:21 -05:00
Aayush Rajasekaran
a6489f2dd7
cache added cids
2022-01-12 18:53:14 -05:00
Aayush Rajasekaran
da39b16c83
Implement an autobatcher
2022-01-12 18:52:17 -05:00
vyzo
e4359eeb19
fix blockstore test contexts
2022-01-11 20:05:01 -05:00
vyzo
8f31112312
plumb more contexts
2022-01-11 20:04:28 -05:00
vyzo
6317f1422d
fix splitstore test
2022-01-11 19:56:07 -05:00
vyzo
35b8516288
plumb more contexts in lotus
2022-01-11 19:53:44 -05:00
Aayush Rajasekaran
5cb33b48da
Plumb contexts through
2022-01-11 19:51:08 -05:00
whyrusleeping
a44081aa75
WIP: updating to new datastore/blockstore code with contexts
2022-01-11 19:48:04 -05:00
vyzo
c905b6f0c1
satisfy the spellchecker that masquarades as a linter
2022-01-11 19:39:35 -05:00
vyzo
f7067adf70
add unit test for compaction supression
2022-01-11 19:39:25 -05:00
vyzo
ee41547c52
add logic for supressing compaction near upgrade boundaries
2022-01-11 19:39:20 -05:00
Aayush Rajasekaran
b3966ab4eb
Fix typo in comment
2021-08-24 20:39:28 -04:00
Steven Allen
cbf69f6ded
fix: make TestTimedCacheBlockstoreSimple pass reliably
2021-08-24 11:35:56 -07:00
vyzo
eb0a62e9e9
RIP bloom filter markset; you weren't used anyway.
2021-08-10 10:47:01 +03:00
vyzo
742c85bf81
add SupportsVisitor in the markset env interface
2021-08-10 10:47:01 +03:00
vyzo
79f348a01c
make the write lock scope limited within a function
...
Also avoid removing the writing set if there was an error while writing.
2021-08-10 10:47:01 +03:00
vyzo
a9403b42f0
deduplicate put code
2021-08-10 10:47:01 +03:00
vyzo
1a59b73adc
add .tmp suffix to transient db names
2021-08-10 10:47:01 +03:00
vyzo
26a5832f92
simplify and deduplicate Has/Visit using helper methods tryPending and tryDB.
2021-08-10 10:47:01 +03:00
vyzo
380e16d465
remove redundant writers state variable
2021-08-10 10:47:01 +03:00
vyzo
b83b5405c6
widen MarkSetVisitor interface and get rid of the casts
2021-08-10 10:47:01 +03:00
vyzo
57c984cea1
improve concurrency properties of Visit with optimistic concurrency
2021-08-10 10:47:01 +03:00
vyzo
563fa1e31a
take advantage of MarkSet/Visitor unification to atomically check+mark
2021-08-10 10:47:01 +03:00
vyzo
cb3c53664d
unify marksets and visitors
2021-08-10 10:47:01 +03:00
vyzo
3c994d94aa
deduplicate some code in markset_badger
2021-08-10 10:47:01 +03:00
vyzo
32d94d4e85
reset walked set as epoch boundaries are crossed
...
the walk is BFS, so we can do this!
2021-08-10 10:47:01 +03:00
vyzo
49346f5679
use visitors instead of cidsets in walks
2021-08-10 10:47:01 +03:00
vyzo
1323d8fb20
markset-backed visitors
2021-08-10 10:47:01 +03:00
vyzo
6f22cffb6b
object visitor interface
2021-08-10 10:47:01 +03:00
vyzo
a768dd84fa
document splitstore clear shed command
2021-08-01 19:18:34 +03:00
vyzo
5e8b2c7860
make symlink helper freestanding
2021-07-29 08:35:53 +03:00
vyzo
b75ff37448
fix typo
...
Co-authored-by: Jakub Sztandera <kubuxu@protocol.ai>
2021-07-28 17:11:04 +03:00
vyzo
c65d72fbca
fix format specifier
2021-07-28 16:20:25 +03:00
vyzo
fff1c0ae57
improve detection of relative links
2021-07-28 16:15:39 +03:00
vyzo
297c9e2f7a
extend test to check the validity of relative links
2021-07-28 11:56:35 +03:00
vyzo
0740274b7c
make relative links when the canonical and new db paths are in the same directory
2021-07-28 11:56:23 +03:00
vyzo
950ded454d
code cosmetics: rename variables for better readability and some comments
2021-07-28 11:49:42 +03:00
vyzo
da3e36acdc
Merge branch 'master' into feat/moving-gc
2021-07-27 12:12:38 +03:00
vyzo
8809707158
update README
2021-07-27 12:08:39 +03:00
vyzo
c21c413695
remove db2 to dbNext
2021-07-27 12:06:40 +03:00
vyzo
bb2d99908c
make state constants typed
2021-07-27 12:03:26 +03:00
vyzo
b82f953fd5
use the badger streaming interface in doCopy
2021-07-27 11:46:35 +03:00