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 KeyError on solitary abort marker. #782

Merged
merged 5 commits into from
Sep 14, 2021

Conversation

pikulmar
Copy link
Contributor

@pikulmar pikulmar commented Sep 9, 2021

Changes

Fixes #781

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> (e.g. 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.

@pikulmar pikulmar force-pushed the fix/fetcher-keyerror branch from 428c4dd to 36ef904 Compare September 10, 2021 07:35
tests/test_fetcher.py Outdated Show resolved Hide resolved
@pikulmar pikulmar force-pushed the fix/fetcher-keyerror branch from 36ef904 to 49c4be4 Compare September 10, 2021 10:48
@pikulmar pikulmar requested a review from ods September 10, 2021 11:19
@pikulmar pikulmar requested a review from ods September 10, 2021 13:24
@codecov
Copy link

codecov bot commented Sep 10, 2021

Codecov Report

Merging #782 (e418952) into master (dbd490f) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #782      +/-   ##
==========================================
- Coverage   97.93%   97.89%   -0.04%     
==========================================
  Files          31       31              
  Lines        5279     5279              
==========================================
- Hits         5170     5168       -2     
- Misses        109      111       +2     
Flag Coverage Δ
cext 88.93% <100.00%> (+1.19%) ⬆️
integration 97.85% <100.00%> (-0.04%) ⬇️
purepy 97.19% <100.00%> (-0.27%) ⬇️
unit 51.61% <100.00%> (+0.22%) ⬆️

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

Impacted Files Coverage Δ
aiokafka/consumer/fetcher.py 97.18% <100.00%> (-0.32%) ⬇️

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 dbd490f...e418952. Read the comment docs.

@tvoinarovskyi tvoinarovskyi requested review from tvoinarovskyi and removed request for tvoinarovskyi September 13, 2021 19:21
@ods ods merged commit 95bafb9 into aio-libs:master Sep 14, 2021
ods added a commit that referenced this pull request Sep 14, 2021
GrigoriParko pushed a commit to Parkopedia/ppds-aiokafka that referenced this pull request Apr 15, 2022
* Fix KeyError on solitary abort marker.

* Add regression test for solitary abort marker.

* Fix regression test.

* Use non-extension builder for test setup.

* Add comments to test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Corner case: Aborted transaction yields KeyError in fetcher.py
2 participants