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

Optionally compress files prior to uploading them in SingularityS3Uploader. #2195

Merged
merged 7 commits into from
Apr 12, 2021

Conversation

baconmania
Copy link
Contributor

No description provided.

@@ -255,7 +257,38 @@ private AtomicInteger handleFile(Path path, boolean isFinished, List<Path> toUpl

found.incrementAndGet();

toUpload.add(path);
if (uploadMetadata.isCompressBeforeUpload() && !path.toString().endsWith(".gz")) {
Copy link
Member

Choose a reason for hiding this comment

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

if we are checking for 'isAlreadyGzipped' here, should we also be checking that in the file glob section? E.g. if something else already zipped it, it should still match the toUpload glob as well

Copy link
Member

Choose a reason for hiding this comment

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

nevermind, stared down the section above a bit more, we are catching those other cases

@ssalinas
Copy link
Member

🚢

@pschoenfelder pschoenfelder merged commit 15208fc into master Apr 12, 2021
@tpetr
Copy link
Contributor

tpetr commented Apr 21, 2021

🚢

@ssalinas ssalinas added this to the 1.5.0 milestone May 4, 2022
@ssalinas ssalinas deleted the compress-before-upload branch May 4, 2022 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staging Merged to staging branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants