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

es/indexer: Drop fatal 40X failures on the floor #1804

Merged
merged 4 commits into from
Sep 17, 2020
Merged

es/indexer: Drop fatal 40X failures on the floor #1804

merged 4 commits into from
Sep 17, 2020

Conversation

akarve
Copy link
Member

@akarve akarve commented Sep 17, 2020

Importantly, we choose to skip the dead letter queue in select cases where we are unlikely to recover from the error, so as to avoid failing the batch. We found a case where list_object_versions may return an object that will never be readable (e.g. due to a foreign owner).

Copy link
Contributor

@kevinemoore kevinemoore left a comment

Choose a reason for hiding this comment

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

This looks like a good change to me. Ideally, we'd capture keys that were not indexed in a better place than just the lambda logs. I don't think the DLQ is any better and we'll end up with more correctly indexed files this way so it seems like a clear win.

@akarve akarve changed the title es/indexer: Unit tests for 40X failure and retry cases es/indexer: Drop fatal 40X failures on the floor Sep 17, 2020
@codecov-commenter
Copy link

codecov-commenter commented Sep 17, 2020

Codecov Report

Merging #1804 into master will increase coverage by 0.15%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1804      +/-   ##
==========================================
+ Coverage   88.52%   88.67%   +0.15%     
==========================================
  Files          62       62              
  Lines        7143     7168      +25     
==========================================
+ Hits         6323     6356      +33     
+ Misses        820      812       -8     
Flag Coverage Δ
#api-python 86.58% <ø> (ø)
#lambda 92.37% <100.00%> (+0.38%) ⬆️

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

Impacted Files Coverage Δ
lambdas/es/indexer/index.py 84.83% <100.00%> (+4.15%) ⬆️
lambdas/es/indexer/test/test_index.py 95.41% <100.00%> (+0.27%) ⬆️

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 aed61e3...ed67a43. Read the comment docs.

@akarve akarve merged commit 2b04b62 into master Sep 17, 2020
@akarve akarve deleted the fail-head branch September 17, 2020 02:44
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.

3 participants