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

Fix exception mapping during expect 100 cancellation. #41800

Merged
merged 3 commits into from
Sep 9, 2020

Conversation

ManickaP
Copy link
Member

@ManickaP ManickaP commented Sep 3, 2020

Discovered during HTTP stress tests for HTTP 1.1
The exception from sendRequestContentTask was thrown as-is instead of being mapped as any other exception (e.g. being wrapped in OperationCanceledException when task was cancelled)

Stress failure: https://dev.azure.com/dnceng/public/_build/results?buildId=796633&view=logs&j=2d2b3007-3c5c-5840-9bb0-2b1ea49925f3&t=8030b67c-413b-5f79-b1fb-b1ba3f08bc47&l=1235

The related code block has been introduced in 5.0 (#38774) and this is a regression from 3.1: a different type of exception is thrown for cancellation than TaskCancelledException.

Contributes to #40388

@ghost
Copy link

ghost commented Sep 3, 2020

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@ManickaP ManickaP requested a review from a team September 3, 2020 14:18
@ManickaP
Copy link
Member Author

ManickaP commented Sep 3, 2020

/azp run runtime-libraries stress-http

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ManickaP
Copy link
Member Author

ManickaP commented Sep 3, 2020

/azp run runtime-libraries stress-http

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ManickaP
Copy link
Member Author

ManickaP commented Sep 7, 2020

Failing test is #37838

Copy link
Contributor

@scalablecory scalablecory left a comment

Choose a reason for hiding this comment

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

lgtm

@ManickaP ManickaP merged commit 287e168 into dotnet:master Sep 9, 2020
@ManickaP ManickaP deleted the mapichov/40388_h1_ex_fix branch September 9, 2020 12:27
@ManickaP
Copy link
Member Author

ManickaP commented Sep 9, 2020

/backport to release/5.0-rc2

@github-actions
Copy link
Contributor

github-actions bot commented Sep 9, 2020

Started backporting to release/5.0-rc2: https://github.com/dotnet/runtime/actions/runs/246289373

@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
@karelz karelz added this to the 6.0.0 milestone Jan 26, 2021
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.

4 participants