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

Extract the native component without copying it into memory #198

Merged
merged 4 commits into from
Apr 10, 2018

Conversation

pfifer
Copy link
Contributor

@pfifer pfifer commented Apr 9, 2018

Use message digest filter streams to limit the required memory during
native executable extraction.

Use message digest filter streams to limit the required memory during
native executable extraction.
Formatter messed up the spacing.
@pfifer pfifer requested a review from sahilpalvia April 9, 2018 18:53
@Before
public void before() throws Exception {
tempDir = File.createTempFile("kpl-unit-tests", "");
tempDir.delete();

Choose a reason for hiding this comment

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

Should the deletion belong to @after?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

File.createTempFile actually creates the file, but I really want a directory.

Thinking about it I looked for a better solution and found it on Files.createTempDirectory.

Use a method designed to correctly create the temporary directory.
Test cleanup will now cleanup the directory used in testing. It is
rather conservative on the clean up to avoid possible issues.

This also will check to make sure the all temp files used by the
HashedFileCopier are correctly cleaned up.
@pfifer pfifer merged commit a51acee into awslabs:master Apr 10, 2018
@pfifer pfifer deleted the digest-extract branch April 10, 2018 15:47
@pfifer pfifer added this to the v0.12.9 milestone Apr 10, 2018
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.

2 participants