Skip to content

Fix exception mapping during expect 100 cancellation.#41800

Merged
ManickaP merged 3 commits into
dotnet:masterfrom
ManickaP:mapichov/40388_h1_ex_fix
Sep 9, 2020
Merged

Fix exception mapping during expect 100 cancellation.#41800
ManickaP merged 3 commits into
dotnet:masterfrom
ManickaP:mapichov/40388_h1_ex_fix

Conversation

@ManickaP

@ManickaP ManickaP commented Sep 3, 2020

Copy link
Copy Markdown
Member

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

ghost commented Sep 3, 2020

Copy link
Copy Markdown

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

ManickaP commented Sep 3, 2020

Copy link
Copy Markdown
Member Author

/azp run runtime-libraries stress-http

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@ManickaP

ManickaP commented Sep 3, 2020

Copy link
Copy Markdown
Member Author

/azp run runtime-libraries stress-http

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@ManickaP

ManickaP commented Sep 7, 2020

Copy link
Copy Markdown
Member Author

Failing test is #37838

@scalablecory scalablecory left a comment

Copy link
Copy Markdown
Contributor

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

ManickaP commented Sep 9, 2020

Copy link
Copy Markdown
Member Author

/backport to release/5.0-rc2

@github-actions

github-actions Bot commented Sep 9, 2020

Copy link
Copy Markdown
Contributor

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