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

HybridCache: don't log cancellation as failure event #5601

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

mgravell
Copy link
Member

@mgravell mgravell commented Nov 5, 2024

Follow up PR feedback from #5467

If the operation is cancelled, do not report as a failure; we still need to decrement the counters, and there is a new corresponding event (at level "verbose" rather than "error")

Note: intentionally doesn't demand that OperationCanceledException.Token is correctly set, as that can be a little brittle; if we see an OperationCanceledException and SharedToken is marked as cancelled: that's good enough to assume that the two things are related, at least enough for logging purposes.

/cc @BrennanConroy

Microsoft Reviewers: Open in CodeFlow

@mgravell mgravell merged commit fdf4180 into dotnet:main Nov 6, 2024
6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants