Skip to content

Handle failures in either the primary or hedged request#2

Open
AdamGS wants to merge 2 commits into
developfrom
adamg/handle-two-requests
Open

Handle failures in either the primary or hedged request#2
AdamGS wants to merge 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

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