Skip to content

Handle failures in either the primary or hedged request#2

Merged
AdamGS merged 2 commits into
developfrom
adamg/handle-two-requests
Jul 23, 2026
Merged

Handle failures in either the primary or hedged request#2
AdamGS merged 2 commits into
developfrom
adamg/handle-two-requests

Conversation

@AdamGS

@AdamGS AdamGS commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

No description provided.

AdamGS added 2 commits July 17, 2026 21:23
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
Comment thread src/lib.rs
r = f2 => {
r?
}
biased;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

we want it to be biased b/c we would prefer the primary result ?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I guess actually it's b/c in our case starvation isn't a concern and we don't want the overhead of fairness

image

Comment thread src/lib.rs
}

#[async_trait]
impl ObjectStore for FailingHedgeStore {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kinda silly how much boiler plate is required

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

there are crates that help deal with that, IDK if I want to pull them? The alternative is probably having one test-only impl that is fully configurable around failures/errors.

@AdamGS
AdamGS merged commit c9344a0 into develop Jul 23, 2026
7 checks passed
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