Repository navigation
perf(storage): recover the WAL without blocking the async runtime #2011
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 all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f1698e1
keep file operation guards on the same thread that took them
zonotope 277d274
separate lock acquisition from wal recovery
zonotope ff22250
add async wal recovery fn without blocking the caller
zonotope fd4122c
recover the WAL asynchronously when opening an async file connection
zonotope 403c1e0
recover the wal asynchronously on the async build paths
zonotope 5aaa1da
open the cli's file-backed instance with build_async
zonotope 9617f8b
update docs
zonotope 1e1ae69
extract repeated join handling into a helper fn
zonotope 4767b4e
remove unnecessary comments
zonotope 305435d
put logged-write crash setup in a FileStorage test hook
zonotope 6c33627
Merge branch 'fix/cas-deadlock' into perf/async-wal-recovery
zonotope 84f2361
Merge remote-tracking branch 'origin/main' into perf/async-wal-recovery
zonotope e1ac529
make the compiler ensure that OperationHold is !Send
zonotope 58adfcf
fix file-builder examples in async docs
zonotope 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
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.
🟡 Optional — the same
build().awaitshape is in two more pages, and two file-backedbuild()?examples were missed.docs/graph-sources/overview.md:193anddocs/graph-sources/r2rml.md:29both havelet fluree = FlureeBuilder::default().build().await?;. Like the reindex examples,.awaiton aResultdoesn't compile — anddefault()has no storage path, so even a syncbuild()there returns "File storage requires a path".FlureeBuilder::file("/path/to/data").build_async().await?would match this page.Two more still call
build()?from what reads as async code: thewithout_ledger_caching()example atdocs/getting-started/rust-api.md:772-774, and the remote-connection example atdocs/operations/configuration.md:1129-1132(the same example this PR converted atrust-api.md:1402-1408).Four small edits, so if you agree, I'd rather see them in this PR than lost in the backlog.
Commenting here because those files are not in this diff.