Skip to content
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

Remove retry_until_known_result() #6868

Open
wants to merge 2 commits into
base: john/fallible-pantry-attach-detach
Choose a base branch
from

Conversation

jgallagher
Copy link
Contributor

@jgallagher jgallagher commented Oct 14, 2024

This builds on #6866. After its changes, there was only caller of retry_until_known_result left; this PR removes it. We keep the retry loop, but instead of retrying forever, we bail out if the sled we're trying to reach is gone, as determined by "is it no longer in-service", which in practice means it's been expunged.

This builds on #6866. After its changes, there was only caller of
`retry_until_known_result` left; this PR removes it. We keep the retry
loop, but instead of retrying for ever, we bail out if the sled we're
trying to reach is "gone", as determined by "is it no longer
in-service", which in practice means it's been expunged.
/// Retry a progenitor client operation until a known result is returned.
///
/// See [`ProgenitorOperationRetry`] for more information.
// TODO mark this deprecated, `never_bail` is a bad idea
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yay!

nexus/db-queries/src/db/datastore/sled.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@gjcolombo gjcolombo left a comment

Choose a reason for hiding this comment

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

Nice!

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.

4 participants