-
Notifications
You must be signed in to change notification settings - Fork 784
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
Add more info about why lookup is in AwaitingDownload #5838
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea!
@@ -397,7 +411,7 @@ impl<T: Clone> SingleLookupRequestState<T> { | |||
}); | |||
} | |||
self.failed_downloading = self.failed_downloading.saturating_add(1); | |||
self.state = State::AwaitingDownload; | |||
self.state = State::AwaitingDownload("retry"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be good to differentiate "retry after download failure" from "retry after processing failure"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to "not started" since it will never remain in that state
pub fn update_awaiting_download_status(&mut self, new_status: &'static str) { | ||
match &mut self.state { | ||
State::AwaitingDownload(status) => *status = new_status, | ||
_ => {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like a lint is failing here
@mergify queue |
🛑 The pull request has been removed from the queue
|
needs an update |
…aiting-download-context
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 6a7305a |
Issue Addressed
When debugging lookup stuck incidents in #5833, it's very helpful to know if the specific reason why a lookup is at the
AwaitingDownload
state.Proposed Changes
As purely informational, append to
AwaitingDownload
enum variant the last reason why the lookup is at that state.