> On Oct. 8, 2017, 4:31 a.m., Andrew Schwartzmeyer wrote:
> > src/launcher/fetcher.cpp
> > Lines 192-211 (original), 198-208 (patched)
> > <https://reviews.apache.org/r/60628/diff/2/?file=1847166#file1847166line198>
> >
> >     What's the point of this entire function now, since we have 
> > `os::copyfile`? It appears redundant. The only difference is the return 
> > value of `destinationPath`, but does the user even need this?

There are a number of call paths, all expecting a Try<string>. `os::copyfile` 
doesn't return that. This makes the caller more compatible with other functions 
that are called (that don't involve `os::copyfile`). See callers, having this 
minimizes code churn.


> On Oct. 8, 2017, 4:31 a.m., Andrew Schwartzmeyer wrote:
> > src/slave/containerizer/fetcher.cpp
> > Line 228 (original), 226 (patched)
> > <https://reviews.apache.org/r/60628/diff/2/?file=1847167#file1847167line228>
> >
> >     Ah ha! The one place in the code base that we should actually need to 
> > normalize back from `/` to `\` for Windows: `Fetcher::uriToLocalPath`.
> >     
> >     Is logic like `uriToLocalPath` anywhere else, too? If so, it's a great 
> > chance to refactor into your new `uri::` namespace.

I don't think so. I'm planning on getting rid of internal calls to 
`path::normalize` from `path::` functions and see what pops up.


> On Oct. 8, 2017, 4:31 a.m., Andrew Schwartzmeyer wrote:
> > src/tests/fetcher_tests.cpp
> > Line 132 (original), 132 (patched)
> > <https://reviews.apache.org/r/60628/diff/2/?file=1847169#file1847169line132>
> >
> >     Your Review Board name is `coffler` :P

Groan, probably should have made it consistent with github.


> On Oct. 8, 2017, 4:31 a.m., Andrew Schwartzmeyer wrote:
> > src/tests/fetcher_tests.cpp
> > Line 469 (original), 473 (patched)
> > <https://reviews.apache.org/r/60628/diff/2/?file=1847169#file1847169line473>
> >
> >     What was changed that required this to change?

I think this was due to normalizing in the path object. Removed, will test 
again.


> On Oct. 8, 2017, 4:31 a.m., Andrew Schwartzmeyer wrote:
> > src/tests/fetcher_tests.cpp
> > Line 913 (original), 935-940 (patched)
> > <https://reviews.apache.org/r/60628/diff/2/?file=1847169#file1847169line937>
> >
> >     Can we explain this a little further? I'm guessetimated that 
> > `verifyMetrics(x, y)` here is testing error codes, maybe? Except above it 
> > says `2` instead of `1`. What's going on here?

Yeah. That last parameter is the number of errors. It's zero on Windows because 
PowerShell doesn't consider CRC errors to be an error.


- Jeff


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


On Oct. 11, 2017, 11:32 p.m., Jeff Coffler wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60628/
> -----------------------------------------------------------
> 
> (Updated Oct. 11, 2017, 11:32 p.m.)
> 
> 
> Review request for mesos, Andrew Schwartzmeyer, John Kordich, Joseph Wu, and 
> Li Li.
> 
> 
> Bugs: MESOS-6705
>     https://issues.apache.org/jira/browse/MESOS-6705
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Tests for tar, gzip, and such won't be working on Windows for
> the time being. Thoughts are to provide this capability to the
> Fetcher in a cross-platform manner via a programmatic code library
> rather than Linux-specific command line tools (tar, gzip, etc).
> See MESOS-8064 for more details.
> 
> In the short term, zip and unzip will work since PowerShell can
> support that natively.
> 
> 
> Diffs
> -----
> 
>   src/launcher/CMakeLists.txt c7a83d476efe13d65fa529e7676b6488eb48f44b 
>   src/launcher/fetcher.cpp 5a9e93adbf2e4f0b8ff64a69e62fea5f6a0b8f2d 
>   src/slave/containerizer/fetcher.cpp 
> ba5b0979aa427c5b3dbacf39661d6027da13e0d6 
>   src/tests/CMakeLists.txt 386e0473c93d0a993248c7818067071d0c761c76 
>   src/tests/fetcher_tests.cpp df9d2d9586a6457004506c4e2a972ccfc912c7c5 
> 
> 
> Diff: https://reviews.apache.org/r/60628/diff/3/
> 
> 
> Testing
> -------
> 
> See upstream.
> 
> 
> Thanks,
> 
> Jeff Coffler
> 
>

Reply via email to