Skip to content

Remove retry_until_known_result() - #6868

Merged
jgallagher merged 3 commits into
mainfrom
john/remove-retry-until-known-result
Nov 14, 2024
Merged

jgallagher merged 3 commits into
mainfrom
john/remove-retry-until-known-result

Conversation

@jgallagher

@jgallagher jgallagher commented Oct 14, 2024 •

Copy link
Copy Markdown
Contributor

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.

Comment thread common/src/lib.rs
/// 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
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yay!

@gjcolombo gjcolombo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

Base automatically changed from john/fallible-pantry-attach-detach to main November 13, 2024 15:58
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.
@jgallagher
jgallagher force-pushed the john/remove-retry-until-known-result branch from 4c69951 to cc24e6e Compare November 13, 2024 18:43
@jgallagher
jgallagher merged commit 41b78f1 into main Nov 14, 2024
@jgallagher
jgallagher deleted the john/remove-retry-until-known-result branch November 14, 2024 16:07
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