Re: Review Request 68595: Made aufs backend destroy more robust.

2018-08-31 Thread Jie Yu
src/slave/containerizer/mesos/provisioner/backends/aufs.cpp c2cdd9310e84c94e48f2e72de96ddced5b3d2e41 Diff: https://reviews.apache.org/r/68595/diff/2/ Changes: https://reviews.apache.org/r/68595/diff/1-2/ Testing --- sudo make check Thanks, Jie Yu

Review Request 68597: Made copy backend destroy more robust.

2018-08-31 Thread Jie Yu
agent recovery. Diffs - src/slave/containerizer/mesos/provisioner/backends/copy.cpp d3eb6b443d49e1cd6cfd7fa3be1776155e8a1bb0 Diff: https://reviews.apache.org/r/68597/diff/1/ Testing --- sudo make check Thanks, Jie Yu

Review Request 68596: Made bind backend destroy more robust.

2018-08-31 Thread Jie Yu
, Jie Yu

Review Request 68594: Made overlay backend destroy more robust.

2018-08-31 Thread Jie Yu
y.cpp e32b9918ac15122477e05ebe701c9425bbefa809 Diff: https://reviews.apache.org/r/68594/diff/1/ Testing --- sudo make check Thanks, Jie Yu

Review Request 68595: Made aufs backend destroy more robust.

2018-08-31 Thread Jie Yu
s.cpp c2cdd9310e84c94e48f2e72de96ddced5b3d2e41 Diff: https://reviews.apache.org/r/68595/diff/1/ Testing --- sudo make check Thanks, Jie Yu

Re: Review Request 68562: Windows: Add comment about V2S2 Docker image Manifest.

2018-08-29 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68562/#review208113 --- Ship it! Ship It! - Jie Yu On Aug. 29, 2018, 8:50 p.m

Re: Review Request 67984: Windows: Added CMake logic to download and "install" `wclayer.exe`.

2018-08-29 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/67984/#review208108 --- Ship it! Ship It! - Jie Yu On Aug. 6, 2018, 6:46 p.m

Re: Review Request 68454: Windows: Fetch blobs with V2S2 Docker image manifest.

2018-08-29 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68454/#review208107 --- Ship it! Ship It! - Jie Yu On Aug. 28, 2018, 11:26 p.m

Re: Review Request 67930: Windows: Enabled `DockerFetcherPluginTest` suite.

2018-08-29 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/67930/#review208106 --- Ship it! Ship It! - Jie Yu On Aug. 25, 2018, 9:57 p.m

Re: Review Request 68550: Fixed flakiness in the `CreateDestroyDiskRecovery` SLRP test.

2018-08-28 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68550/#review208072 --- Ship it! Ship It! - Jie Yu On Aug. 28, 2018, 9:46 p.m

Re: Review Request 68454: Windows: Fetch blobs with V2S2 Docker image manifest.

2018-08-28 Thread Jie Yu
35-937 (patched) <https://reviews.apache.org/r/68454/#comment291811> No need for this tmp variable. src/uri/fetchers/docker.cpp Lines 982-986 (patched) <https://reviews.apache.org/r/68454/#comment291812> Ditto. No need for this tmp variable. - Jie Yu On Aug. 25, 2018, 9:57

Re: Review Request 68355: Added a CNI test for networking statistics.

2018-08-28 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68355/#review208062 --- Ship it! Ship It! - Jie Yu On Aug. 17, 2018, 3:37 a.m

Re: Review Request 68527: Added cpus/mem to the resource provider config in SLRP tests.

2018-08-27 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68527/#review207993 --- Ship it! Ship It! - Jie Yu On Aug. 27, 2018, 8:54 p.m

Re: Review Request 68454: Windows: Fetch blobs with V2S2 Docker image manifest.

2018-08-24 Thread Jie Yu
> On Aug. 24, 2018, 5:45 a.m., Jie Yu wrote: > > src/uri/fetchers/docker.cpp > > Lines 235 (patched) > > <https://reviews.apache.org/r/68454/diff/2/?file=2076952#file2076952line235> > > > > Can you check with Andy. Let's be consisent on doing

Re: Review Request 68454: Windows: Fetch blobs with V2S2 Docker image manifest.

2018-08-24 Thread Jie Yu
> On Aug. 24, 2018, 5:45 a.m., Jie Yu wrote: > > src/uri/fetchers/docker.cpp > > Lines 235 (patched) > > <https://reviews.apache.org/r/68454/diff/2/?file=2076952#file2076952line235> > > > > Can you check with Andy. Let's be consisent on doing

Re: Review Request 67930: Windows: Enabled `DockerFetcherPluginTest` suite.

2018-08-23 Thread Jie Yu
g/r/67930/#comment291399> We can use a constant like `TEST_REPOSITORY` in the top of this file? lile `TEST_DIGEST`? - Jie Yu On Aug. 6, 2018, 6:46 p.m., Liangyu Zhao wrote: > > --- > This is an automatically genera

Re: Review Request 68454: Windows: Fetch blobs with V2S2 Docker image manifest.

2018-08-23 Thread Jie Yu
<https://reviews.apache.org/r/68454/#comment291397> Please do j++ to be consistent with i++ above. src/uri/fetchers/docker.cpp Lines 1026 (patched) <https://reviews.apache.org/r/68454/#comment291391> Let's avoid nesting by dealing with failure first: ``` if (urls

Re: Review Request 68455: Windows: Enable DockerFetcher in Windows agent.

2018-08-22 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68455/#review207805 --- Ship it! Ship It! - Jie Yu On Aug. 21, 2018, 9:30 p.m

Re: Review Request 68454: Windows: Fetch blobs with V2S2 Docker image manifest.

2018-08-22 Thread Jie Yu
(), [=](int code) { if (code == http::Status::OK) { return Nothing(); } return _urlFetchBlob(blobUri, directory, authHeaders, urls); }); } ``` - Jie Yu On Aug. 21, 2018, 9:30 p.m., Liangyu Zhao wrote: > >

Re: Review Request 68453: Windows: Fetch version 2 scheme 2 Docker image manifest.

2018-08-22 Thread Jie Yu
i, directory, blobUri, authHeaders, code); #else return Failure( "Unexpected HTTP response '" + http::Status::string(code) + "' " "when trying to download the blob&quo

Re: Review Request 68453: Windows: Fetch version 2 scheme 2 Docker image manifest.

2018-08-22 Thread Jie Yu
s a long chain and might not be easy to tweak. Feel free to ignore this src/uri/fetchers/docker.cpp Lines 897 (patched) <https://reviews.apache.org/r/68453/#comment291308> I'd use `.repair` instead - Jie Yu On Aug. 21, 2018, 9:29 p.m., Liangyu Zhao wrote: > >

Re: Review Request 68451: Windows: Parse version 2 schema 2 Docker image manifest.

2018-08-22 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68451/#review207800 --- Can you add unit test for the validate function? - Jie Yu On

Re: Review Request 68451: Windows: Parse version 2 schema 2 Docker image manifest.

2018-08-22 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68451/#review207799 --- Ship it! Ship It! - Jie Yu On Aug. 21, 2018, 9:29 p.m

Re: Review Request 68450: Windows: Update curl version to 7.61.0.

2018-08-22 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68450/#review207798 --- Ship it! Ship It! - Jie Yu On Aug. 21, 2018, 9:28 p.m

Re: Review Request 68458: Fixed the lib_logrotate inappropriate UNSET_CLOEXEC via ChildHook.

2018-08-21 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68458/#review207703 --- Ship it! Ship It! - Jie Yu On Aug. 21, 2018, 9:42 p.m

Re: Review Request 68443: Fixed the example for image_gc_config.

2018-08-21 Thread Jie Yu
---------- On Aug. 21, 2018, 4:45 p.m., Jie Yu wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/68443/ > ---

Re: Review Request 68448: Skip the container if there's no container network.

2018-08-21 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68448/#review207684 --- Ship it! Ship It! - Jie Yu On Aug. 21, 2018, 7:16 p.m

Re: Review Request 68443: Fixed the example for image_gc_config.

2018-08-21 Thread Jie Yu
bcddea2f8606f71fc46a39debca323d85c1d94c1 src/slave/flags.cpp fd208f64416ae865b81c8ba5950b20bde6be00a3 Diff: https://reviews.apache.org/r/68443/diff/2/ Changes: https://reviews.apache.org/r/68443/diff/1-2/ Testing --- trivial Thanks, Jie Yu

Review Request 68443: Fixed the example for image_gc_config.

2018-08-21 Thread Jie Yu
/68443/diff/1/ Testing --- trivial Thanks, Jie Yu

Re: Review Request 68397: Updated the ::pipe() system calls to pipe2 in lib_logrotate.

2018-08-20 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68397/#review207638 --- Ship it! Ship It! - Jie Yu On Aug. 20, 2018, 9:38 p.m

Re: Review Request 68426: Refactored some cgroups helpers to do verify from callers.

2018-08-19 Thread Jie Yu
Took 55.xxx secs to destroy 1000 containers After the patch Took 37.xxx secs to launch 1000 containers Took 26.xxx secs to destroy 1000 containers Thanks, Jie Yu

Re: Review Request 68426: Refactored some cgroups helpers to do verify from callers.

2018-08-19 Thread Jie Yu
b80e40b6f4b18e076ebb3c1668f475286c337127 Diff: https://reviews.apache.org/r/68426/diff/1/ Testing --- sudo make check Thanks, Jie Yu

Review Request 68426: Refactored some cgroups helpers to do verify from callers.

2018-08-19 Thread Jie Yu
--- sudo make check Thanks, Jie Yu

Re: Review Request 67931: Windows: Added support for Docker Image Manifest Version 2 Schema 2.

2018-08-17 Thread Jie Yu
> On Aug. 16, 2018, 10:34 p.m., Jie Yu wrote: > > src/uri/fetchers/docker.cpp > > Lines 682 (patched) > > <https://reviews.apache.org/r/67931/diff/6/?file=2071252#file2071252line683> > > > > I'd rather treating fetching v2 schema 2 manifest as

Re: Review Request 68417: Ignored pre-existing CSI volumes known to SLRP.

2018-08-17 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68417/#review207551 --- Ship it! Ship It! - Jie Yu On Aug. 17, 2018, 9:12 p.m

Re: Review Request 63270: Updated `os::pipe()` to always return O_CLOEXEC descriptors.

2018-08-17 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63270/#review207549 --- Ship it! Ship It! - Jie Yu On Aug. 17, 2018, 5:53 p.m

Re: Review Request 63270: Updated `os::pipe()` to always return O_CLOEXEC descriptors.

2018-08-17 Thread Jie Yu
-- > > (Updated Aug. 17, 2018, 5:53 p.m.) > > > Review request for mesos, Andrew Schwartzmeyer, Benjamin Bannier, Benjamin > Mahler, Greg Mann, and Jie Yu. > > > Bugs: MESOS-8128 > https://issues.apache.org/

Re: Review Request 63280: Made the containerizer launch be explicit about O_CLOEXEC.

2018-08-17 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63280/#review207527 --- Ship it! Ship It! - Jie Yu On Aug. 17, 2018, 6:14 p.m

Re: Review Request 68413: Only update profiles when getting `200 OK` in `UriDiskProfileAdaptor`.

2018-08-17 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68413/#review207515 --- Ship it! Ship It! - Jie Yu On Aug. 17, 2018, 5:22 p.m

Re: Review Request 68396: Updated the ::pipe() system calls to pipe2 in posix subprocess.

2018-08-16 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68396/#review207453 --- Ship it! Ship It! - Jie Yu On Aug. 16, 2018, 11:18 p.m

Re: Review Request 67931: Windows: Added support for Docker Image Manifest Version 2 Schema 2.

2018-08-16 Thread Jie Yu
> On Aug. 16, 2018, 10:34 p.m., Jie Yu wrote: > > src/uri/fetchers/docker.cpp > > Lines 682 (patched) > > <https://reviews.apache.org/r/67931/diff/6/?file=2071252#file2071252line683> > > > > I'd rather treating fetching v2 schema 2 manifest as

Re: Review Request 67931: Windows: Added support for Docker Image Manifest Version 2 Schema 2.

2018-08-16 Thread Jie Yu
c code in `__fetchBlob`. Basically, if you got a 404 on windows, do the extra steps to fetch the v2_2 manifest, and try to download the uri. In this way, you don't need to change the core logic. - Jie Yu On Aug. 6, 2018, 6:45 p.m., Liangyu Zhao wrote: > > ---

Re: Review Request 67931: Windows: Added support for Docker Image Manifest Version 2 Schema 2.

2018-08-15 Thread Jie Yu
> On Aug. 15, 2018, 8:50 p.m., Jie Yu wrote: > > what’s the filesystem layout for the cache when v2 schema 2 is used? > > The layout for schema 1 is here: > > https://github.com/apache/mesos/blob/master/src/slave/containerizer/mesos/provisioner/docker/paths.hpp#L31-L46 >

Re: Review Request 67931: Windows: Added support for Docker Image Manifest Version 2 Schema 2.

2018-08-15 Thread Jie Yu
> On Aug. 15, 2018, 8:50 p.m., Jie Yu wrote: > > what’s the filesystem layout for the cache when v2 schema 2 is used? > > The layout for schema 1 is here: > > https://github.com/apache/mesos/blob/master/src/slave/containerizer/mesos/provisioner/docker/paths.hpp#L31-L46 >

Re: Review Request 67931: Windows: Added support for Docker Image Manifest Version 2 Schema 2.

2018-08-15 Thread Jie Yu
used? The layout for schema 1 is here: https://github.com/apache/mesos/blob/master/src/slave/containerizer/mesos/provisioner/docker/paths.hpp#L31-L46 as far as I know, layer_id does not apply to schema 2. What do you use for the key? - Jie Yu On Aug. 6, 2018, 6:45 p.m., Liangyu Zhao wrote

Re: Review Request 68355: Added a CNI test for networking statistics.

2018-08-15 Thread Jie Yu
(patched) <https://reviews.apache.org/r/68355/#comment290694> Errors must be indicated by a non-zero return code - Jie Yu On Aug. 15, 2018, 6:02 a.m., Sergey Urbanovich wrote: > > --- > This is an automatically generated e

Re: Review Request 68355: Added a CNI test for networking statistics.

2018-08-14 Thread Jie Yu
s.cpp Lines 2428 (patched) <https://reviews.apache.org/r/68355/#comment290642> No need for this. - Jie Yu On Aug. 15, 2018, 1:47 a.m., Sergey Urbanovich wrote: > > --- > This

Re: Review Request 68054: Added networking statistics to cni isolator.

2018-08-14 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68054/#review207302 --- Ship it! Ship It! - Jie Yu On Aug. 15, 2018, 1:46 a.m

Re: Review Request 68335: Added a CNI test to verify destroy while preparing.

2018-08-14 Thread Jie Yu
/containerizer/cni_isolator_tests.cpp 419c94d601cd588c893a5324c4aef71c40ec0f61 Diff: https://reviews.apache.org/r/68335/diff/2/ Changes: https://reviews.apache.org/r/68335/diff/1-2/ Testing --- sudo make check Thanks, Jie Yu

Re: Review Request 68334: Used state::checkpoint instead in CNI isolator.

2018-08-14 Thread Jie Yu
che.org/r/68334/#review207216 --- On Aug. 13, 2018, 11:04 p.m., Jie Yu wrote: > > --- > This is an automatically generated e-mail. To reply, visit

Re: Review Request 68054: Added networking statistics to cni isolator.

2018-08-13 Thread Jie Yu
256 (patched) <https://reviews.apache.org/r/68054/#comment290488> I would like to add the cleanup code to `CniIsolatorTest::cleanup`. It's possible that the test is ended with sigkill or ctrl+c. And `ip link add name vethmesostest0 type veth peer name vethmesostestns

Re: Review Request 68053: Call any function in a specified namespace.

2018-08-13 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68053/#review207184 --- Ship it! Ship It! - Jie Yu On July 31, 2018, 5:30 p.m

Re: Review Request 68334: Used state::checkpoint instead in CNI isolator.

2018-08-13 Thread Jie Yu
src/slave/containerizer/mesos/isolators/network/cni/cni.cpp f46c962d8f044092aaa113fafc536c6b25bab45c Diff: https://reviews.apache.org/r/68334/diff/3/ Changes: https://reviews.apache.org/r/68334/diff/2-3/ Testing --- sudo make check Thanks, Jie Yu

Re: Review Request 68334: Used state::checkpoint instead in CNI isolator.

2018-08-13 Thread Jie Yu
sting --- sudo make check Thanks, Jie Yu

Review Request 68335: Added a CNI test to verify destroy while preparing.

2018-08-13 Thread Jie Yu
/containerizer/cni_isolator_tests.cpp cb22e73b4215b5b0a49ac610e5f657b73d38963b Diff: https://reviews.apache.org/r/68335/diff/1/ Testing --- sudo make check Thanks, Jie Yu

Review Request 68334: Used state::checkpoint intead in CNI isolator.

2018-08-13 Thread Jie Yu
k/cni/cni.cpp f46c962d8f044092aaa113fafc536c6b25bab45c Diff: https://reviews.apache.org/r/68334/diff/1/ Testing --- sudo make check Thanks, Jie Yu

Review Request 68333: Made CNI isolator cleanup more robust.

2018-08-13 Thread Jie Yu
that the cleanup does not fail in those scenarios. Diffs - src/slave/containerizer/mesos/isolators/network/cni/cni.cpp f46c962d8f044092aaa113fafc536c6b25bab45c Diff: https://reviews.apache.org/r/68333/diff/1/ Testing --- sudo make check Thanks, Jie Yu

Re: Review Request 68266: Added a benchmark for Mesos containerizer.

2018-08-08 Thread Jie Yu
* --benchmark Thanks, Jie Yu

Re: Review Request 68266: Added a benchmark for Mesos containerizer.

2018-08-07 Thread Jie Yu
* --benchmark Thanks, Jie Yu

Re: Review Request 68266: Added a benchmark for Mesos containerizer.

2018-08-07 Thread Jie Yu
* --benchmark Thanks, Jie Yu

Re: Review Request 68266: Added a benchmark for Mesos containerizer.

2018-08-07 Thread Jie Yu
* --benchmark Thanks, Jie Yu

Review Request 68266: Added a benchmark for Mesos containerizer.

2018-08-07 Thread Jie Yu
/mesos_containerizer_benchmarks.cpp PRE-CREATION Diff: https://reviews.apache.org/r/68266/diff/1/ Testing --- sudo bin/mesos-tests.sh --gtest_filter=*MesosContainerizer_BENCHMARK_Test* --benchmark Thanks, Jie Yu

Re: Review Request 68239: Updated port mapper CNI test.

2018-08-06 Thread Jie Yu
://reviews.apache.org/r/68239/diff/2-3/ Testing --- sudo make check Thanks, Jie Yu

Re: Review Request 68158: Fixed the iptables deadlock in CNI port mapper plugin.

2018-08-06 Thread Jie Yu
``` [ OK ] CniIsolatorPortMapperTest.ROOT_INTERNET_CURL_PortMapper (8827 ms) ``` Thanks, Jie Yu

Re: Review Request 68239: Updated port mapper CNI test.

2018-08-06 Thread Jie Yu
> > loop here so not opening an issue. Good idea! > On Aug. 6, 2018, 10:35 p.m., Chun-Hung Hsiao wrote: > > src/tests/containerizer/cni_isolator_tests.cpp > > Line 2000 (original), 2045-2047 (patched) > > <https://reviews.apache.org/r/68239/diff/2/?file=2069278#file

Re: Review Request 68158: Fixed the iptables deadlock in CNI port mapper plugin.

2018-08-06 Thread Jie Yu
- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68158/#review206904 ----------- On Aug. 6, 2018, 8:30 p.m., Jie Yu wrote: > >

Re: Review Request 68158: Fixed the iptables deadlock in CNI port mapper plugin.

2018-08-06 Thread Jie Yu
sos/isolators/network/cni/plugins/port_mapper/port_mapper.cpp f1a3d263b7baa3ccbf270426745022d42fcc66ed Diff: https://reviews.apache.org/r/68158/diff/4/ Changes: https://reviews.apache.org/r/68158/diff/3-4/ Testing --- sudo make check ``` [ OK ] CniIsolatorPortMapperTest.ROOT_INTERNET_CURL_PortMapper (8827 ms) ``` Thanks, Jie Yu

Re: Review Request 68239: Updated port mapper CNI test.

2018-08-06 Thread Jie Yu
/ Testing --- sudo make check Thanks, Jie Yu

Re: Review Request 68239: Updated port mapper CNI test.

2018-08-06 Thread Jie Yu
(patched) <https://reviews.apache.org/r/68239/#comment290017> indent - Jie Yu On Aug. 6, 2018, 4:53 p.m., Jie Yu wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.

Review Request 68239: Updated port mapper CNI test.

2018-08-06 Thread Jie Yu
/values.hpp 39487b955fc1a3c963f69de66ba0da869dd3ab2e src/tests/containerizer/cni_isolator_tests.cpp 90d2d4103c8136d2dd883318acc135f7efca80d8 Diff: https://reviews.apache.org/r/68239/diff/1/ Testing --- sudo make check Thanks, Jie Yu

Re: Review Request 68158: Fixed the iptables deadlock in CNI port mapper plugin.

2018-08-06 Thread Jie Yu
erTest.ROOT_INTERNET_CURL_PortMapper (8827 ms) ``` Thanks, Jie Yu

Re: Review Request 68203: Updated volume isolators to honor volume mode.

2018-08-04 Thread Jie Yu
> On Aug. 5, 2018, 5:46 a.m., Jie Yu wrote: > > src/slave/containerizer/mesos/isolators/volume/host_path.cpp > > Lines 318 (patched) > > <https://reviews.apache.org/r/68203/diff/2/?file=2067547#file2067547line319> > > > > I'd suggest we sepa

Re: Review Request 68203: Updated volume isolators to honor volume mode.

2018-08-04 Thread Jie Yu
Lines 318 (patched) <https://reviews.apache.org/r/68203/#comment289964> I'd suggest we separate this patch, and have one patch for each isolator (we might want to backport a few, like host path volume). Also, add unit test for each isolator. - Jie Yu On Aug. 4, 2018, 9:58

Re: Review Request 68158: Fixed the iptables deadlock in CNI port mapper plugin.

2018-08-04 Thread Jie Yu
twork/cni/plugins/port_mapper/port_mapper.cpp c40b57f78193520f9f0b901201b5c4c855cde8b3 Diff: https://reviews.apache.org/r/68158/diff/2/ Testing --- sudo make check ``` [ OK ] CniIsolatorPortMapperTest.ROOT_INTERNET_CURL_PortMapper (8827 ms) ``` Thanks, Jie Yu

Re: Review Request 68158: Fixed the iptables deadlock in CNI port mapper plugin.

2018-08-02 Thread Jie Yu
sting --- sudo make check ``` [ OK ] CniIsolatorPortMapperTest.ROOT_INTERNET_CURL_PortMapper (8827 ms) ``` Thanks, Jie Yu

Re: Review Request 68167: Avoided hostname lookups in the CNI port mapper.

2018-08-02 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68167/#review206806 --- Ship it! Ship It! - Jie Yu On Aug. 2, 2018, 4:30 p.m., Greg

Review Request 68158: Fixed the iptables deadlock in CNI port mapper plugin.

2018-08-01 Thread Jie Yu
1b5c4c855cde8b3 Diff: https://reviews.apache.org/r/68158/diff/1/ Testing --- sudo make check ``` [ OK ] CniIsolatorPortMapperTest.ROOT_INTERNET_CURL_PortMapper (8827 ms) ``` Thanks, Jie Yu

Re: Review Request 68152: Added missing iptables argument in CNI port mapper.

2018-08-01 Thread Jie Yu
ssage: ``` Previously, we are missing a `-w` option for one iptable command, which will cause the iptables command to fail if any application is holding the xtables lock. By using `-w`, the iptables will wait for the xtables lock to be released, instead of failing. ``` - Jie Yu On Aug. 1, 2018, 10:2

Re: Review Request 68054: Added networking statistics to cni isolator.

2018-07-27 Thread Jie Yu
g/r/68054/#comment289534> Instead of passing in container network struct, i'd suggest we just pass in ifName: ``` Try NetworkCniIsolatorProcess::_usage( const hashmap ifNames) ``` - Jie Yu On July 27, 2018, 11:36 p.m., Sergey

Re: Review Request 68053: Call any function in a specified namespace.

2018-07-27 Thread Jie Yu
) If the Process to be resumed on the looper thread is a super busy thread, meaning that the message queue is never empty, the looper thread won't get a chance to execute its tasks on its stack. - Jie Yu On July 27, 2018, 8:35 p.m., Sergey Urb

Re: Review Request 68053: Call any function in a specified namespace.

2018-07-27 Thread Jie Yu
s 277 (patched) <https://reviews.apache.org/r/68053/#comment289523> Ditto on period. src/tests/containerizer/ns_tests.cpp Lines 286 (patched) <https://reviews.apache.org/r/68053/#comment289524> Ditto on period.

Re: Review Request 67936: Fixed ephemeral ports deallocation in network/port_mapping isolator.

2018-07-24 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/67936/#review206406 --- Ship it! Ship It! - Jie Yu On July 17, 2018, 8:12 p.m

Re: Review Request 67936: Fixed ephemeral ports deallocation in network/port_mapping isolator.

2018-07-16 Thread Jie Yu
/port_mapping_tests.cpp Lines 1826 (patched) <https://reviews.apache.org/r/67936/#comment289044> instead of hard code 512 which is fragile, i'd get `ephemeral_ports` resources, and use more than half of that. - Jie Yu On July 16, 2018, 11:14 p.m., Ilya P

Re: Review Request 67923: Improved performance of cgroups::read by verifying after failure.

2018-07-16 Thread Jie Yu
caller to call `verify`, making read/write/create pure helper for writing to cgroup filesystem. - Jie Yu On July 16, 2018, 2:03 a.m., Benjamin Mahler wrote: > > --- > This is an automatically generated e-mail. To reply, visit

Re: Review Request 67892: Made disk type checks in SLRP hard assertions.

2018-07-13 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/67892/#review206076 --- Ship it! Ship It! - Jie Yu On July 13, 2018, 6:39 p.m

Re: Review Request 67669: Allowed resources to be removed when updating the sorter.

2018-07-13 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/67669/#review206068 --- Ship it! Ship It! - Jie Yu On July 10, 2018, 8:31 p.m

Re: Review Request 67876: Allowed resources to be removed in the hierarchical allocator.

2018-07-13 Thread Jie Yu
/hierarchical.cpp Line 925 (original), 938 (patched) <https://reviews.apache.org/r/67876/#comment289018> indentation should be 4 here since we treat `CHECK_EQ` as a function - Jie Yu On July 10, 2018, 9:13 p.m., Chun-Hung Hsiao

Re: Review Request 67881: Fixed the error log in POSIX `os::rmdir`.

2018-07-10 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/67881/#review205955 --- Ship it! Ship It! - Jie Yu On July 10, 2018, 11:14 p.m

Re: Review Request 67769: Made CNI isolator recovery waits until unknown orphan cleanup is done.

2018-06-28 Thread Jie Yu
/network/cni/cni.cpp Lines 443 (patched) <https://reviews.apache.org/r/67769/#comment288441> I would print out LOG(ERROR) in the continuation if cleanup fails. - Jie Yu On June 29, 2018, 1:41 a.m., Qian Zhang wrote: > > -

Re: Review Request 67769: Made CNI isolator recovery waits until unknown orphan cleanup is done.

2018-06-28 Thread Jie Yu
440 (original), 442 (patched) <https://reviews.apache.org/r/67769/#comment288414> I would use 'await' here so that the agent will still start if cleanup fails. - Jie Yu On June 28, 2018, 1:32 p.m., Qian Zhang wrote: > >

Re: Review Request 67737: Updated CNI slave recovery test.

2018-06-26 Thread Jie Yu
- On June 26, 2018, 5:36 a.m., Jie Yu wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/67737/ > -

Review Request 67737: Updated CNI slave recovery test.

2018-06-25 Thread Jie Yu
b58a9caca136cfa42689159389bfdcb3f92f05ee Diff: https://reviews.apache.org/r/67737/diff/1/ Testing --- sudo make check Thanks, Jie Yu

Re: Review Request 67728: Fixed orphan container cleanup issue in CNI isolator.

2018-06-25 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/67728/#review205314 ----------- On June 25, 2018, 7 p.m., Jie Yu wrote: > > --

Review Request 67728: Fixed orphan container cleanup issue in CNI isolator.

2018-06-25 Thread Jie Yu
iff: https://reviews.apache.org/r/67728/diff/1/ Testing --- sudo make check Thanks, Jie Yu

Re: Review Request 67398: Changed default executor tests to not use pipes for synchronization.

2018-06-21 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/67398/#review205185 --- Ship it! Ship It! - Jie Yu On June 15, 2018, 1 p.m

Re: Review Request 67596: Fixed the flakiness in the `NVIDIA_GPU_NvidiaDockerImage` test.

2018-06-15 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/67596/#review204883 --- Ship it! Ship It! - Jie Yu On June 14, 2018, 3:47 a.m

Re: Review Request 67398: Changed default executor tests to not use pipes for synchronization.

2018-06-12 Thread Jie Yu
Lines 1017-1028 (original), 1012-1028 (patched) <https://reviews.apache.org/r/67398/#comment287214> Any reason we cannot use a named pipe as well here? - Jie Yu On June 7, 2018, 12:40 p.m., Benjamin Bannier wrote: > > ---

Re: Review Request 67421: Rewrote the `ROOT_BusyMountPoint` test to reflect updated behavior.

2018-06-12 Thread Jie Yu
(patched) <https://reviews.apache.org/r/67421/#comment287212> Can you use `DEFAULT_TEST_ROLE` here? ``` flags.resources = strings::format( "disk(%s):1024", DEFAULT_TEST_ROLE).get(); ``` - Jie Yu On June 6, 2018, 12:08 a.m.,

Re: Review Request 67423: Skipped metric for non existing paths in gc.

2018-06-12 Thread Jie Yu
> On June 12, 2018, 6:17 p.m., Jie Yu wrote: > > src/slave/gc.cpp > > Lines 262 (patched) > > <https://reviews.apache.org/r/67423/diff/2/?file=2035399#file2035399line262> > > > > This is a bit hacky. A better way should be modify `os::rmdir` to

Re: Review Request 67423: Skipped metric for non existing paths in gc.

2018-06-12 Thread Jie Yu
) <https://reviews.apache.org/r/67423/#comment287207> This is a bit hacky. A better way should be modify `os::rmdir` to return `Try`. The second template parameter is the error code. Can you add a TODO? - Jie Yu On June 2, 2018, 5:30 a.m., Zhitao Li

<    1   2   3   4   5   6   7   8   9   10   >