Skip to content

chore(tiering): Push error handling one more level up #5351

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
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dranikpg
Copy link
Contributor

@dranikpg dranikpg commented Jun 23, 2025

Add error types to OpManager and TieredStorage. Next PR will focus on string family and other tiering users. Pull helio

@dranikpg dranikpg marked this pull request as ready for review June 26, 2025 19:27
@@ -180,7 +177,7 @@ OpResult<TResult<size_t>> OpStrLen(const OpArgs& op_args, string_view key) {
fb2::Future<size_t> fut;
op_args.shard->tiered_storage()->Read(
op_args.db_cntx.db_index, key, co,
[fut](const std::string& s) mutable { fut.Resolve(s.size()); });
[fut](io::Result<std::string> s) mutable { fut.Resolve(s->size()); });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't that trigger a deep copy of the io::Result which will deep copy the string ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just moved the copy one level up in the call chain. I also left a small todo in the place of invocation, as passing it by value will make it possible to move the last value

@dranikpg
Copy link
Contributor Author

dranikpg commented Jun 28, 2025

@romange I pulled romange/helio#422 with me, which fails in some replication cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants