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

Allow specification of buffer length for GCS to Samba #38373

Merged
merged 8 commits into from
Apr 5, 2024

Conversation

collinmcnulty
Copy link
Contributor

@collinmcnulty collinmcnulty commented Mar 21, 2024

Previously, the SambaHook and therefore the GCSToSambaOperator did not allow changing the buffer length used to copy the files to Samba. This lead to very long upload times for 10GB+ files. After increasing the buffer size, the time to upload could be reduced by an order of magnitude.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

Co-Authored-By: jslepicka-apex <110119914+jslepicka-apex@users.noreply.github.com>
@collinmcnulty collinmcnulty marked this pull request as ready for review March 21, 2024 14:11
airflow/providers/samba/hooks/samba.py Outdated Show resolved Hide resolved
airflow/providers/samba/hooks/samba.py Outdated Show resolved Hide resolved
collinmcnulty and others added 3 commits March 23, 2024 20:50
@Taragolis
Copy link
Contributor

Nice, could you also add tests when the new parameters provided, this might help to avoid some kind regression in the future

@Taragolis Taragolis merged commit 13209fc into apache:main Apr 5, 2024
40 checks passed
@collinmcnulty collinmcnulty deleted the gcs-samba-buffer-len branch April 5, 2024 23:30
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.

2 participants