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

Retry on watch longpoll disconnect. #3029

Merged
merged 7 commits into from
Mar 20, 2024

Conversation

mitchdenny
Copy link
Member

@mitchdenny mitchdenny commented Mar 20, 2024

Partially addresses #2422

This PR introduces a Polly resilience pipeline to retry the watch resource long poll operation when it disconnects. We detect the disconnect by overving that the exception that is thrown has an inner exception of type EndOfStreamException. If we see this then we'll log a debug message for future supportability purposes, but otherwise exit.

We swallow OperationCancelledExceptions and exit cleanly. All other exceptions are logged.

Microsoft Reviewers: Open in CodeFlow

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Mar 20, 2024
@mitchdenny mitchdenny self-assigned this Mar 20, 2024
@mitchdenny mitchdenny added this to the preview 5 (Apr) milestone Mar 20, 2024
@davidfowl
Copy link
Member

cc @martincostello

@mitchdenny mitchdenny merged commit 587d8da into main Mar 20, 2024
8 checks passed
@mitchdenny mitchdenny deleted the mitchdenny/watch-longpool-disconnect-retry branch March 20, 2024 06:02
@github-actions github-actions bot locked and limited conversation to collaborators Apr 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants