-
Notifications
You must be signed in to change notification settings - Fork 145
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
refactored the download module to have reusable clients #817
Conversation
d1e0bf8
to
571b056
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is great! left a few comments, and would like @karan6181 and @XiaohanZhangCMU to also take a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I think this is mostly good with me. To make sure that we're not causing throughput / cache regressions, let's run the streaming regression tests off this branch. Will message you directions for that!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. thanks for the massive refactoring!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment on the doctest you had, doesn't seem like the clean_up() function does anything, which is why I'm kinda confused about the output...
Other than that, lgtm.
827e7e5
to
3e9bc89
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank You!
Description of changes:
Refactored the download.py from constantly remaking clients to reusing an existing client for the same object. This should substantially cut down the number of possible active clients which can cause issue with certain cloud providers.
Base run: streaming-oci-socket-testing-f7UHTM
Branch run: streaming-oci-socket-testing-Hq3QSQ
Issue #, if available:
Fixes #728
Merge Checklist:
Put an
x
without space in the boxes that apply. If you are unsure about any checklist, please don't hesitate to ask. We are here to help! This is simply a reminder of what we are going to look for before merging your pull request.General
Tests
pre-commit
on my change. (check out thepre-commit
section of prerequisites)