Skip to content

Fix flaky connection to redshift data API#1834

Merged
feast-ci-bot merged 2 commits into
feast-dev:masterfrom
achals:achal/fix-connection-closed
Sep 3, 2021
Merged

Fix flaky connection to redshift data API#1834
feast-ci-bot merged 2 commits into
feast-dev:masterfrom
achals:achal/fix-connection-closed

Conversation

@achals

@achals achals commented Sep 3, 2021

Copy link
Copy Markdown
Member

Signed-off-by: Achal Shah achals@gmail.com

What this PR does / why we need it:

I've seen this error very often:

E           botocore.exceptions.ConnectionClosedError: Connection was closed before we received a valid response from endpoint URL: "https://redshift-data.us-west-2.amazonaws.com/".

Examples:
https://github.com/feast-dev/feast/pull/1833/checks?check_run_id=3507137476
https://github.com/feast-dev/feast/runs/3490830039?check_suite_focus=true
https://github.com/feast-dev/feast/runs/3490830012?check_suite_focus=true

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

Retry submitting queries to redshift on connection errors.

Signed-off-by: Achal Shah <achals@gmail.com>
@codecov-commenter

codecov-commenter commented Sep 3, 2021

Copy link
Copy Markdown

Codecov Report

Merging #1834 (fec7a87) into master (9dc9e60) will decrease coverage by 0.56%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1834      +/-   ##
==========================================
- Coverage   84.60%   84.04%   -0.57%     
==========================================
  Files          94       90       -4     
  Lines        6946     6762     -184     
==========================================
- Hits         5877     5683     -194     
- Misses       1069     1079      +10     
Flag Coverage Δ
integrationtests 83.96% <100.00%> (-0.31%) ⬇️
unittests 63.57% <100.00%> (+0.20%) ⬆️

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

Impacted Files Coverage Δ
sdk/python/feast/infra/utils/aws_utils.py 88.46% <100.00%> (+0.11%) ⬆️
...thon/feast/infra/offline_stores/redshift_source.py 81.60% <0.00%> (-2.30%) ⬇️
sdk/python/feast/infra/online_stores/redis.py 92.85% <0.00%> (-1.79%) ⬇️
sdk/python/feast/errors.py 67.96% <0.00%> (-1.43%) ⬇️
sdk/python/feast/cli.py 42.58% <0.00%> (-1.38%) ⬇️
...python/feast/infra/offline_stores/offline_store.py 82.92% <0.00%> (-1.08%) ⬇️
sdk/python/feast/infra/offline_stores/file.py 96.46% <0.00%> (-0.69%) ⬇️
sdk/python/feast/infra/provider.py 88.13% <0.00%> (-0.66%) ⬇️
sdk/python/feast/infra/offline_stores/redshift.py 90.09% <0.00%> (-0.21%) ⬇️
sdk/python/feast/feature_store.py 92.96% <0.00%> (-0.19%) ⬇️
... and 9 more

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 9dc9e60...fec7a87. Read the comment docs.

Comment thread sdk/python/feast/infra/utils/aws_utils.py Outdated
Signed-off-by: Achal Shah <achals@gmail.com>

@adchia adchia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

/lgtm

@feast-ci-bot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: achals, adchia

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@feast-ci-bot feast-ci-bot merged commit fda5b55 into feast-dev:master Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants