You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Armand Grillet <ag...@mesosphere.io> on 2017/12/13 14:47:02 UTC
Review Request 64575: Added containerClass() to
MesosContainerizerProcess::Container.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64575/
-----------------------------------------------------------
Review request for mesos and Alexander Rukletsov.
Bugs: MESOS-7361
https://issues.apache.org/jira/browse/MESOS-7361
Repository: mesos
Description
-------
This function always returns a ContainerClass,
`DEFAULT` being the default value returned.
Diffs
-----
src/slave/containerizer/mesos/containerizer.hpp 965e183bb5c54f31d90e910edd35313ab380cea9
src/slave/containerizer/mesos/containerizer.cpp 7ab0b07f689f872573ca458ae47cd6426ebc0365
Diff: https://reviews.apache.org/r/64575/diff/1/
Testing
-------
```
GTEST_FILTER="" nice make check -j16 V=0
```
Thanks,
Armand Grillet
Re: Review Request 64575: Added containerClass() to
MesosContainerizerProcess::Container.
Posted by Alexander Rukletsov <ru...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64575/#review193893
-----------------------------------------------------------
Fix it, then Ship it!
src/slave/containerizer/mesos/containerizer.hpp
Lines 360 (patched)
<https://reviews.apache.org/r/64575/#comment272562>
This is not quite true. Even if `config` is not optional anymore, `ContainerConfig.container_class` might not be set and default to `0`. Please kill this line.
src/slave/containerizer/mesos/containerizer.cpp
Lines 2877-2884 (patched)
<https://reviews.apache.org/r/64575/#comment272561>
Since this function can be used not only in the launch path where we have the container, you should check `config` is not `None`. How about something like this then?
```
return (config.isSome() && config->has_container_class())
? config->container_class()
: ContainerClass::DEFAULT;
``
- Alexander Rukletsov
On Dec. 13, 2017, 7:47 p.m., Armand Grillet wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/64575/
> -----------------------------------------------------------
>
> (Updated Dec. 13, 2017, 7:47 p.m.)
>
>
> Review request for mesos and Alexander Rukletsov.
>
>
> Bugs: MESOS-7361
> https://issues.apache.org/jira/browse/MESOS-7361
>
>
> Repository: mesos
>
>
> Description
> -------
>
> This function always returns a ContainerClass, `DEFAULT` being the
> default value returned. Also simplifies the conditional statements
> in mesos/containerizer.cpp to use the function added.
>
>
> Diffs
> -----
>
> src/slave/containerizer/mesos/containerizer.hpp 965e183bb5c54f31d90e910edd35313ab380cea9
> src/slave/containerizer/mesos/containerizer.cpp 7ab0b07f689f872573ca458ae47cd6426ebc0365
>
>
> Diff: https://reviews.apache.org/r/64575/diff/2/
>
>
> Testing
> -------
>
> ```
> GTEST_FILTER="" nice make check -j16 V=0
> ```
>
>
> Thanks,
>
> Armand Grillet
>
>
Re: Review Request 64575: Added containerClass() to
MesosContainerizerProcess::Container.
Posted by Alexander Rukletsov <ru...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64575/#review193896
-----------------------------------------------------------
src/slave/containerizer/mesos/containerizer.hpp
Lines 358-359 (patched)
<https://reviews.apache.org/r/64575/#comment272563>
Please backtick class values.
- Alexander Rukletsov
On Dec. 13, 2017, 7:47 p.m., Armand Grillet wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/64575/
> -----------------------------------------------------------
>
> (Updated Dec. 13, 2017, 7:47 p.m.)
>
>
> Review request for mesos and Alexander Rukletsov.
>
>
> Bugs: MESOS-7361
> https://issues.apache.org/jira/browse/MESOS-7361
>
>
> Repository: mesos
>
>
> Description
> -------
>
> This function always returns a ContainerClass, `DEFAULT` being the
> default value returned. Also simplifies the conditional statements
> in mesos/containerizer.cpp to use the function added.
>
>
> Diffs
> -----
>
> src/slave/containerizer/mesos/containerizer.hpp 965e183bb5c54f31d90e910edd35313ab380cea9
> src/slave/containerizer/mesos/containerizer.cpp 7ab0b07f689f872573ca458ae47cd6426ebc0365
>
>
> Diff: https://reviews.apache.org/r/64575/diff/2/
>
>
> Testing
> -------
>
> ```
> GTEST_FILTER="" nice make check -j16 V=0
> ```
>
>
> Thanks,
>
> Armand Grillet
>
>
Re: Review Request 64575: Added containerClass() to
MesosContainerizerProcess::Container.
Posted by Armand Grillet <ag...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64575/
-----------------------------------------------------------
(Updated Dec. 19, 2017, 6:39 p.m.)
Review request for mesos and Alexander Rukletsov.
Bugs: MESOS-7361
https://issues.apache.org/jira/browse/MESOS-7361
Repository: mesos
Description (updated)
-------
This function always returns a ContainerClass, with `DEFAULT` being
the default value returned. Also simplifies the conditional
statements in mesos/containerizer.cpp to use the function added.
Diffs
-----
src/slave/containerizer/mesos/containerizer.hpp 85cb325fba2e49b78a1f381183a61f03ccd5194a
src/slave/containerizer/mesos/containerizer.cpp 1a398a8ea7f3e49273459b318ae2e8a3eaae2d9c
Diff: https://reviews.apache.org/r/64575/diff/3/
Testing
-------
```
GTEST_FILTER="" nice make check -j16 V=0
```
Thanks,
Armand Grillet
Re: Review Request 64575: Added containerClass() to
MesosContainerizerProcess::Container.
Posted by Armand Grillet <ag...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64575/
-----------------------------------------------------------
(Updated Dec. 18, 2017, 10:03 a.m.)
Review request for mesos and Alexander Rukletsov.
Changes
-------
Fixed issues.
Bugs: MESOS-7361
https://issues.apache.org/jira/browse/MESOS-7361
Repository: mesos
Description
-------
This function always returns a ContainerClass, `DEFAULT` being the
default value returned. Also simplifies the conditional statements
in mesos/containerizer.cpp to use the function added.
Diffs (updated)
-----
src/slave/containerizer/mesos/containerizer.hpp 85cb325fba2e49b78a1f381183a61f03ccd5194a
src/slave/containerizer/mesos/containerizer.cpp 1a398a8ea7f3e49273459b318ae2e8a3eaae2d9c
Diff: https://reviews.apache.org/r/64575/diff/3/
Changes: https://reviews.apache.org/r/64575/diff/2-3/
Testing
-------
```
GTEST_FILTER="" nice make check -j16 V=0
```
Thanks,
Armand Grillet
Re: Review Request 64575: Added containerClass() to
MesosContainerizerProcess::Container.
Posted by Armand Grillet <ag...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64575/
-----------------------------------------------------------
(Updated Dec. 13, 2017, 7:47 p.m.)
Review request for mesos and Alexander Rukletsov.
Changes
-------
Added https://reviews.apache.org/r/64576/ content.
Bugs: MESOS-7361
https://issues.apache.org/jira/browse/MESOS-7361
Repository: mesos
Description (updated)
-------
This function always returns a ContainerClass, `DEFAULT` being the
default value returned. Also simplifies the conditional statements
in mesos/containerizer.cpp to use the function added.
Diffs (updated)
-----
src/slave/containerizer/mesos/containerizer.hpp 965e183bb5c54f31d90e910edd35313ab380cea9
src/slave/containerizer/mesos/containerizer.cpp 7ab0b07f689f872573ca458ae47cd6426ebc0365
Diff: https://reviews.apache.org/r/64575/diff/2/
Changes: https://reviews.apache.org/r/64575/diff/1-2/
Testing
-------
```
GTEST_FILTER="" nice make check -j16 V=0
```
Thanks,
Armand Grillet
Re: Review Request 64575: Added containerClass() to
MesosContainerizerProcess::Container.
Posted by Mesos Reviewbot Windows <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64575/#review193688
-----------------------------------------------------------
FAIL: Some Mesos tests failed.
Reviews applied: `['64575']`
Failed command: `D:\DCOS\mesos\src\mesos-tests.exe --verbose`
All the build artifacts available at: http://dcos-win.westus.cloudapp.azure.com/mesos-build/review/64575
Relevant logs:
- [mesos-tests-stdout.log](http://dcos-win.westus.cloudapp.azure.com/mesos-build/review/64575/logs/mesos-tests-stdout.log):
```
[----------] 1 test from IsolationFlag/CpuIsolatorTest
[ RUN ] IsolationFlag/CpuIsolatorTest.ROOT_UserCpuUsage/0
[ OK ] IsolationFlag/CpuIsolatorTest.ROOT_UserCpuUsage/0 (2453 ms)
[----------] 1 test from IsolationFlag/CpuIsolatorTest (2478 ms total)
[----------] 1 test from IsolationFlag/MemoryIsolatorTest
[ RUN ] IsolationFlag/MemoryIsolatorTest.ROOT_MemUsage/0
[ OK ] IsolationFlag/MemoryIsolatorTest.ROOT_MemUsage/0 (2484 ms)
[----------] 1 test from IsolationFlag/MemoryIsolatorTest (2508 ms total)
[----------] Global test environment tear-down
[==========] 829 tests from 84 test cases ran. (332969 ms total)
[ PASSED ] 819 tests.
[ FAILED ] 10 tests, listed below:
[ FAILED ] OfferOperationStatusUpdateManagerTest.UpdateAndAckNonTerminalUpdate
[ FAILED ] OfferOperationStatusUpdateManagerTest.RecoverCheckpointedStream
[ FAILED ] OfferOperationStatusUpdateManagerTest.RecoverEmptyFile
[ FAILED ] OfferOperationStatusUpdateManagerTest.RecoverTerminatedStream
[ FAILED ] OfferOperationStatusUpdateManagerTest.IgnoreDuplicateUpdate
[ FAILED ] OfferOperationStatusUpdateManagerTest.IgnoreDuplicateUpdateAfterRecover
[ FAILED ] OfferOperationStatusUpdateManagerTest.RejectDuplicateAck
[ FAILED ] OfferOperationStatusUpdateManagerTest.RejectDuplicateAckAfterRecover
[ FAILED ] OfferOperationStatusUpdateManagerTest.NonStrictRecoveryCorruptedFile
[ FAILED ] SlaveTest.ResourceProviderPublishAll
10 FAILED TESTS
YOU HAVE 201 DISABLED TESTS
```
- [mesos-tests-stderr.log](http://dcos-win.westus.cloudapp.azure.com/mesos-build/review/64575/logs/mesos-tests-stderr.log):
```
I1213 15:42:28.782146 8152 master.cpp:10158] Updating the state of task c7a854f3-dc5a-47ca-91a9-532414f74ab9 of framework 76471eb5-27b9-46b6-9779-1743b5b0befc-0000 (latest state: TASK_KILLED, status update state: TASK_KILLED)
I1213 15:42:28.782146 1920 slave.cpp:3400] ShuttinI1213 15:42:28.084194 8012 exec.cpp:162] Version: 1.5.0
I1213 15:42:28.109163 3996 exec.cpp:237] Executor registered on agent 76471eb5-27b9-46b6-9779-1743b5b0befc-S0
I1213 15:42:28.112192 9452 executor.cpp:171] Received SUBSCRIBED event
I1213 15:42:28.117166 9452 executor.cpp:175] Subscribed executor on build-srv-03.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net
I1213 15:42:28.118190 9452 executor.cpp:171] Received LAUNCH event
I1213 15:42:28.122169 9452 executor.cpp:637] Starting task c7a854f3-dc5a-47ca-91a9-532414f74ab9
I1213 15:42:28.199184 9452 executor.cpp:477] Running 'D:\DCOS\mesos\src\mesos-containerizer.exe launch <POSSIBLY-SENSITIVE-DATA>'
I1213 15:42:28.755149 9452 executor.cpp:650] Forked command at 7216
I1213 15:42:28.784148 1244 exec.cpp:435] Executor asked to shutdown
I1213 15:42:28.785146 9452 executor.cpp:171] Received SHUTDOWN event
I1213 15:42:28.785146 9452 executor.cpp:747] Shutting down
I1213 15:42:28.785146 9452 executor.cpp:854] Sending SIGTERM to process tree at pid 7g down framework 76471eb5-27b9-46b6-9779-1743b5b0befc-0000
I1213 15:42:28.782146 1920 slave.cpp:6114] Shutting down executor 'c7a854f3-dc5a-47ca-91a9-532414f74ab9' of framework 76471eb5-27b9-46b6-9779-1743b5b0befc-0000 at executor(1)@10.3.1.11:50016
I1213 15:42:28.783145 1920 slave.cpp:909] Agent terminating
W1213 15:42:28.783145 1920 slave.cpp:3396] Ignoring shutdown framework 76471eb5-27b9-46b6-9779-1743b5b0befc-0000 because it is terminating
I1213 15:42:28.784148 8152 master.cpp:10264] Removing task c7a854f3-dc5a-47ca-91a9-532414f74ab9 with resources cpus(allocated: *):4; mem(allocated: *):2048; disk(allocated: *):1024; ports(allocated: *):[31000-32000] of framework 76471eb5-27b9-46b6-9779-1743b5b0befc-0000 on agent 76471eb5-27b9-46b6-9779-1743b5b0befc-S0 at slave(326)@10.3.1.11:49995 (build-srv-03.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I1213 15:42:28.787144 6528 containerizer.cpp:2337] Destroying container 593e260c-dd0c-4205-8a1d-d679d7a33b9a in RUNNING state
I1213 15:42:28.787144 6528 containerizer.cpp:2949] Transitioning the state of container 593e260c-dd0c-4205-8a1d-d679d7a33b9a from RUNNING to DESTROYING
I1213 15:42:28.787144 8152 master.cpp:1305] Agent 76471eb5-27b9-46b6-9779-1743b5b0befc-S0 at slave(326)@10.3.1.11:49995 (build-srv-03.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net) disconnected
I1213 15:42:28.787144 6616 hierarchical.cpp:344] Removed framework 76471eb5-27b9-46b6-9779-1743b5b0befc-0000
I1213 15:42:28.788157 8152 master.cpp:3364] Disconnecting agent 76471eb5-27b9-46b6-9779-1743b5b0befc-S0 at slave(326)@10.3.1.11:49995 (build-srv-03.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I1213 15:42:28.788157 8152 master.cpp:3383] Deactivating agent 76471eb5-27b9-46b6-9779-1743b5b0befc-S0 at slave(326)@10.3.1.11:49995 (build-srv-03.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I1213 15:42:28.788157 1920 hierarchical.cpp:766] Agent 76471eb5-27b9-46b6-9779-1743b5b0befc-S0 deactivated
I1213 15:42:28.788157 6528 launcher.cpp:156] Asked to destroy container 593e260c-dd0c-4205-8a1d-d679d7a33b9a
I1213 15:42:28.859256 8152 containerizer.cpp:2788] Container 593e260c-dd0c-4205-8a1d-d679d7a33b9a has exited
I1213 15:42:28.889271 7352 master.cpp:1147] Master terminating
I1213 15:42:28.891285 7348 hierarchical.cpp:609] Removed agent 76471eb5-27b9-46b6-9779-1743b5b0befc-S0
I1213 15:42:29.246253 8304 process.cpp:887] Failed to accept socket: future discarded
```
- Mesos Reviewbot Windows
On Dec. 13, 2017, 2:47 p.m., Armand Grillet wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/64575/
> -----------------------------------------------------------
>
> (Updated Dec. 13, 2017, 2:47 p.m.)
>
>
> Review request for mesos and Alexander Rukletsov.
>
>
> Bugs: MESOS-7361
> https://issues.apache.org/jira/browse/MESOS-7361
>
>
> Repository: mesos
>
>
> Description
> -------
>
> This function always returns a ContainerClass,
> `DEFAULT` being the default value returned.
>
>
> Diffs
> -----
>
> src/slave/containerizer/mesos/containerizer.hpp 965e183bb5c54f31d90e910edd35313ab380cea9
> src/slave/containerizer/mesos/containerizer.cpp 7ab0b07f689f872573ca458ae47cd6426ebc0365
>
>
> Diff: https://reviews.apache.org/r/64575/diff/1/
>
>
> Testing
> -------
>
> ```
> GTEST_FILTER="" nice make check -j16 V=0
> ```
>
>
> Thanks,
>
> Armand Grillet
>
>