mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joris Van Remoortere <joris.van.remoort...@gmail.com>
Subject Re: Review Request 53695: Allows caching extractable files when outputFile is set.
Date Wed, 01 Mar 2017 18:38:35 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53695/#review167494
-----------------------------------------------------------



Closing this review due to inactivity. Please see our [guidelines](https://github.com/apache/mesos/blob/master/docs/reopening-reviews.md)
for reopening reviews.

- Joris Van Remoortere


On Nov. 28, 2016, 7:14 p.m., Stephen Hankinson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/53695/
> -----------------------------------------------------------
> 
> (Updated Nov. 28, 2016, 7:14 p.m.)
> 
> 
> Review request for mesos, Gilbert Song and Jie Yu.
> 
> 
> Bugs: MESOS-6587
>     https://issues.apache.org/jira/browse/MESOS-6587
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Allows caching extractable files when outputFile is set.
> 
> 
> Diffs
> -----
> 
>   src/launcher/fetcher.cpp 4456c28139966e42859cc6d2c79a1d90e83fb22f 
>   src/tests/fetcher_cache_tests.cpp 03e817d46194d451eceb70f4cebb54dfdcb4c2e7 
> 
> 
> Diff: https://reviews.apache.org/r/53695/diff/2/
> 
> 
> Testing
> -------
> 
> A new test, FetcherCacheTest.LocalCachedExtractCustomOutputFile, was created to confirm
that when a URI is created with cached: true, extract: true, a custom outputFile with a proper
compression suffix set, and an original URI that doesn't end with a proper compression suffix
fails to extract properly from the cache.
> 
> The test makes a copy of the test archive in the cache but appends "misc" to the end,
forming an invalid compression suffix, causing mesos-fetcher-test-archive.tgz to become mesos-fetcher-test-archive.tgzmisc.
The URI path is set to this modified location. The outputFile of the URI is set ARCHIVE_NAME
which ends with a valid compression suffix, so therefore should extract properly.
> 
> At the end of the test the temporary cached archive file (mesos-fetcher-test-archive.tgzmisc)
is deleted.
> 
> Before the patch was written this test was failing as expected. After implementing the
patch, this and all other tests were passing.
> 
> 
> Thanks,
> 
> Stephen Hankinson
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message