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

Add more info about why lookup is in AwaitingDownload #5838

Merged
merged 5 commits into from
May 28, 2024

Conversation

dapplion
Copy link
Collaborator

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.

@dapplion dapplion added the ready-for-review The code is ready for review label May 24, 2024
@dapplion dapplion requested a review from realbigsean May 24, 2024 17:11
Copy link
Member

@realbigsean realbigsean left a 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");
Copy link
Member

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"

Copy link
Collaborator Author

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,
_ => {}
Copy link
Member

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

@realbigsean realbigsean added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels May 24, 2024
@realbigsean realbigsean added ready-for-merge This PR is ready to merge. and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels May 24, 2024
@realbigsean
Copy link
Member

@mergify queue

Copy link

mergify bot commented May 25, 2024

queue

🛑 The pull request has been removed from the queue default

The pull request conflicts with at least one pull request ahead in queue.

You can take a look at Queue: Embarked in merge queue check runs for more details.

In case of a failure due to a flaky test, you should first retrigger the CI.
Then, re-embark the pull request into the merge queue by posting the comment
@mergifyio refresh on the pull request.

@michaelsproul michaelsproul added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-merge This PR is ready to merge. labels May 27, 2024
@michaelsproul
Copy link
Member

needs an update

@michaelsproul michaelsproul added the v5.2.0 Q2 2024 label May 27, 2024
@jimmygchen
Copy link
Member

@mergify queue

Copy link

mergify bot commented May 28, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 6a7305a

@jimmygchen jimmygchen added ready-for-merge This PR is ready to merge. Networking and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels May 28, 2024
@mergify mergify bot merged commit 6a7305a into sigp:unstable May 28, 2024
28 checks passed
@dapplion dapplion deleted the awaiting-download-context branch May 28, 2024 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Networking ready-for-merge This PR is ready to merge. v5.2.0 Q2 2024
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants