----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/65936/#review198844 -----------------------------------------------------------
3rdparty/stout/include/stout/internal/windows/reparsepoint.hpp Lines 192-199 (original), 192-199 (patched) <https://reviews.apache.org/r/65936/#comment279091> Adding here just so we remember: Let's add a regression test around `os::realpath` where we open a writable handle to file, and then call `os::realpath`. - Andrew Schwartzmeyer On March 7, 2018, 10:24 a.m., John Kordich wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/65936/ > ----------------------------------------------------------- > > (Updated March 7, 2018, 10:24 a.m.) > > > Review request for mesos, Akash Gupta, Andrew Schwartzmeyer, Jeff Coffler, > and Joseph Wu. > > > Bugs: MESOS-8646 > https://issues.apache.org/jira/browse/MESOS-8646 > > > Repository: mesos > > > Description > ------- > > Changed flags to CreateFile to support Windows symlink path resolution. > > > Diffs > ----- > > 3rdparty/stout/include/stout/internal/windows/reparsepoint.hpp > 858b3c7c27e95b9cf46a7457c1aaa05a0e19188d > > > Diff: https://reviews.apache.org/r/65936/diff/1/ > > > Testing > ------- > > I encountered a permissions error stating "The process cannot access the file > because it is being used by another process." when attempting to download > stderr/stdout from a task running on a Windows agent, or when attempting to > download the mesos agent log on a Windows agent. > > After some very helpful information from Andy and Akash, I made this change > and confirmed it fixed this issue with the task/agent logs. > > I also ran the automated tests on Windows and all tests pass. > > I did not test this on Linux, but because this file is compiled only on > Windows, it shouldn't be necessary. > > > Thanks, > > John Kordich > >