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

[PR #4795/9bdee369 backport][3.7] Fix resolver task is not awaited when connector is cancelled #5050

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Oct 15, 2020

This is a backport of PR #4795 as merged into master (9bdee36).

Fixes #4330

Are there changes in behavior for the user?

No

Related issue number

#4330

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep alphabetical order, the file is sorted by names.
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> for example (588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the pr
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."

* Add test to reproduce the issue

"Task exception was never retrieved"
on connector cancellation and dns resolver
returns error

* Fix connector launching resolver task is not awaited

in case of CancelledError

* Add myself to contributors

* Add file to CHANGES

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
(cherry picked from commit 9bdee36)
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Oct 15, 2020
@codecov-io
Copy link

codecov-io commented Oct 15, 2020

Codecov Report

Merging #5050 into 3.7 will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##              3.7    #5050   +/-   ##
=======================================
  Coverage   97.72%   97.72%           
=======================================
  Files          44       44           
  Lines        8965     8972    +7     
  Branches     1410     1411    +1     
=======================================
+ Hits         8761     8768    +7     
  Misses         88       88           
  Partials      116      116           
Flag Coverage Δ
#unit 97.72% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
aiohttp/connector.py 96.98% <100.00%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fea5244...f717be5. Read the comment docs.

@asvetlov asvetlov merged commit 9b918a3 into 3.7 Oct 15, 2020
@asvetlov asvetlov deleted the patchback/backports/3.7/9bdee3695172ff048b298480044600a5c1c72150/pr-4795 branch October 15, 2020 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided There is a change note present in this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants