You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Alex Clemmer <cl...@gmail.com> on 2016/04/07 12:23:47 UTC
Re: Review Request 45015: Windows: Fixed bug causing `os::exists` to
report invalid paths exist.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45015/
-----------------------------------------------------------
(Updated April 7, 2016, 10:23 a.m.)
Review request for mesos, Alex Naparu, Daniel Pravat, Artem Harutyunyan, Joris Van Remoortere, Michael Park, M Lawindi, and Yi Sun.
Repository: mesos
Description
-------
Currently on Windows, `os::exists` will return true if a component of a
path does not exist. For example if you have `a/fancy/path`, and you ask
`os::exists("a/fake/path")`, the result currently reports `true`. In
other words, the Windows code path only checks for the error that a file
does not exist, and ignores the error that says the path is not valid.
This commit will fix this, and also add a test that will verify we don't
regress.
Diffs (updated)
-----
3rdparty/libprocess/3rdparty/stout/include/stout/os/windows/exists.hpp 9211851e4562e04045276421b359c3c78cdae7f1
3rdparty/libprocess/3rdparty/stout/tests/os/filesystem_tests.cpp 4c30189bb8261ccfc699da0f31b8b1fd3e9b3c83
Diff: https://reviews.apache.org/r/45015/diff/
Testing
-------
Thanks,
Alex Clemmer
Re: Review Request 45015: Windows: Fixed bug causing `os::exists` to
report invalid paths exist.
Posted by Michael Park <mp...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45015/#review127931
-----------------------------------------------------------
Ship it!
Ship It!
- Michael Park
On April 7, 2016, 10:23 a.m., Alex Clemmer wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45015/
> -----------------------------------------------------------
>
> (Updated April 7, 2016, 10:23 a.m.)
>
>
> Review request for mesos, Alex Naparu, Daniel Pravat, Artem Harutyunyan, Joris Van Remoortere, Michael Park, M Lawindi, and Yi Sun.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> Currently on Windows, `os::exists` will return true if a component of a
> path does not exist. For example if you have `a/fancy/path`, and you ask
> `os::exists("a/fake/path")`, the result currently reports `true`. In
> other words, the Windows code path only checks for the error that a file
> does not exist, and ignores the error that says the path is not valid.
>
> This commit will fix this, and also add a test that will verify we don't
> regress.
>
>
> Diffs
> -----
>
> 3rdparty/libprocess/3rdparty/stout/include/stout/os/windows/exists.hpp 9211851e4562e04045276421b359c3c78cdae7f1
> 3rdparty/libprocess/3rdparty/stout/tests/os/filesystem_tests.cpp 4c30189bb8261ccfc699da0f31b8b1fd3e9b3c83
>
> Diff: https://reviews.apache.org/r/45015/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Alex Clemmer
>
>