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

NuGet Job, don't rethrow exceptions if blob is not found #10188

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

erdembayar
Copy link
Contributor

@erdembayar erdembayar commented Sep 19, 2024

Fixes: https://github.com/NuGet/Engineering/issues/5628
Context is here on teams.
Deployment: 1550336

Previously there was many exceptions for NuGet.Jobs, after deployment it's no more.
Before: image

After:
image

@erdembayar erdembayar changed the title Dev eryondon job notfound exception Don't rethrow exceptions if blob is not found Sep 19, 2024
@erdembayar erdembayar marked this pull request as ready for review September 19, 2024 23:36
@erdembayar erdembayar requested a review from a team as a code owner September 19, 2024 23:36
catch (RequestFailedException ex) when (ex.ErrorCode == BlobErrorCode.BlobNotFound)
{
// Ignore this same as CloudBlobStorageException for below.
}
catch (CloudBlobStorageException e)
{
WebException webException = e.InnerException as WebException;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't remove CloudBlobStorageException handling part. There could be some places we still didn't complete SDK migration. Once we have confidence, then we can remove it.

@erdembayar erdembayar changed the title Don't rethrow exceptions if blob is not found NuGet Job, don't rethrow exceptions if blob is not found Sep 20, 2024
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.

1 participant