Re: Review Request 41234: Close leaked FD in RegistryClientTest.SimpleRegistryPuller.

2015-12-11 Thread Joseph Wu

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

(Updated Dec. 11, 2015, 10:21 a.m.)


Review request for mesos, Artem Harutyunyan, Jojy Varghese, and Timothy Chen.


Bugs: MESOS-4026
https://issues.apache.org/jira/browse/MESOS-4026


Repository: mesos


Description
---

Close leaked FD in RegistryClientTest.SimpleRegistryPuller.


Diffs
-

  src/tests/containerizer/provisioner_docker_tests.cpp 
3f1717b770e139c3759aab0aeda9dbcf5029b0c2 

Diff: https://reviews.apache.org/r/41234/diff/


Testing
---

make check 

bin/mesos-tests.sh --gtest_filter="RegistryClientTest.SimpleRegistryPuller" 
--gtest_repeat=256


Thanks,

Joseph Wu



Re: Review Request 41234: Close leaked FD in RegistryClientTest.SimpleRegistryPuller.

2015-12-11 Thread Jie Yu

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

Ship it!



src/tests/containerizer/provisioner_docker_tests.cpp (line 1195)


This is good for now. But we will be still leaking fd if 
`ASSERT_SOME(os::nonblock(fd.get()));` fails or `io::read` fails. The correct 
solution is to use a RAII pattern for file descriptors. We can address that 
later.

Also (not yours), I am not sure why we cannot use os::read here.


- Jie Yu


On Dec. 11, 2015, 6:21 p.m., Joseph Wu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/41234/
> ---
> 
> (Updated Dec. 11, 2015, 6:21 p.m.)
> 
> 
> Review request for mesos, Artem Harutyunyan, Jojy Varghese, and Timothy Chen.
> 
> 
> Bugs: MESOS-4026
> https://issues.apache.org/jira/browse/MESOS-4026
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Close leaked FD in RegistryClientTest.SimpleRegistryPuller.
> 
> 
> Diffs
> -
> 
>   src/tests/containerizer/provisioner_docker_tests.cpp 
> 3f1717b770e139c3759aab0aeda9dbcf5029b0c2 
> 
> Diff: https://reviews.apache.org/r/41234/diff/
> 
> 
> Testing
> ---
> 
> make check 
> 
> bin/mesos-tests.sh --gtest_filter="RegistryClientTest.SimpleRegistryPuller" 
> --gtest_repeat=256
> 
> 
> Thanks,
> 
> Joseph Wu
> 
>



Re: Review Request 41234: Close leaked FD in RegistryClientTest.SimpleRegistryPuller.

2015-12-10 Thread Mesos ReviewBot

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


Patch looks great!

Reviews applied: [41234]

Passed command: export OS=ubuntu:14.04;export CONFIGURATION="--verbose";export 
COMPILER=gcc; ./support/docker_build.sh

- Mesos ReviewBot


On Dec. 11, 2015, 1:15 a.m., Joseph Wu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/41234/
> ---
> 
> (Updated Dec. 11, 2015, 1:15 a.m.)
> 
> 
> Review request for mesos, Artem Harutyunyan, Jojy Varghese, and Timothy Chen.
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Close leaked FD in RegistryClientTest.SimpleRegistryPuller.
> 
> 
> Diffs
> -
> 
>   src/tests/containerizer/provisioner_docker_tests.cpp 
> 3f1717b770e139c3759aab0aeda9dbcf5029b0c2 
> 
> Diff: https://reviews.apache.org/r/41234/diff/
> 
> 
> Testing
> ---
> 
> make check 
> 
> bin/mesos-tests.sh --gtest_filter="RegistryClientTest.SimpleRegistryPuller" 
> --gtest_repeat=256
> 
> 
> Thanks,
> 
> Joseph Wu
> 
>