-
Notifications
You must be signed in to change notification settings - Fork 24
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
Blockstore on all dagstore cids #116
Conversation
Co-authored-by: dirkmc <dirkmdev@gmail.com>
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.
- How and when are shards released?
- Suggest naming as IndexBackedBlockstore.
- If possible, put in a different package (ex. indexbs?) as this is a utility and strictly not needed for the operation of the DagStore.
How is the LRU cache configured?
Is there a reason that this needs to be a member of the DagStore? |
|
There was a race here where two Get calls for the same shard key create two shard accesors and only one gets added to the lru cache and eventually relased whereas we lose the reference to the other one without ever releasing it (because multiple add calls to the lru cache for the same key only updates the priority of the item). I've fixed this with striped locking based on shard key to synchornize access to the lru cache. |
@raulk Please can you take a look ? |
May I ask what's the status of this work? |
direct pointer to DAG store is not always available, better mocking
Hello. We would like to use DAGStore together with a top-level index. We also need a Blockstore over the top-level index to serve sampling requests to our light clients, so we would like to have this merged not to reinvent the wheel:
Kindly ping @raulk, @dirkmc, and @aarshkshah1992. I know you are busy with FVM and Boost things, but this should not take too much time from you. Thanks! |
@hannahhoward probably has the most recent context here, and I think we are hoping to finish the work needed to get this finished. |
@Wondertan @MichaelMure we are hoping to get it merged this week |
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.
lgtm
01bed9a
to
0b07b8f
Compare
ref-count blockstore acquires so as to close exactly once
index-backed blockstore - synchronize acquires
For IPFS <-> Filecoin interop.
A blockstore that can serve retrieval for any cid across all shards that the dagstore has.
TODO