mesos git commit: Fixed `HTTPTest.QueryEncodeDecode`.

2018-03-07 Thread andschwa
Repository: mesos Updated Branches: refs/heads/master 0a4a900e5 -> 66bae088d Fixed `HTTPTest.QueryEncodeDecode`. This commit fixes MESOS-8551. Stout's `hashmap` is a wrapper around `std::unordered_map`. The Standard Template Library places no restriction on the iteration order for the

[1/2] mesos-site git commit: Updated the website built from mesos SHA: 0a4a900.

2018-03-07 Thread git-site-role
Repository: mesos-site Updated Branches: refs/heads/asf-site 6a99696d3 -> ef7a57fc5 http://git-wip-us.apache.org/repos/asf/mesos-site/blob/ef7a57fc/content/sitemap.xml -- diff --git a/content/sitemap.xml b/content/sitemap.xml

[2/2] mesos-site git commit: Updated the website built from mesos SHA: 0a4a900.

2018-03-07 Thread git-site-role
Updated the website built from mesos SHA: 0a4a900. Project: http://git-wip-us.apache.org/repos/asf/mesos-site/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos-site/commit/ef7a57fc Tree: http://git-wip-us.apache.org/repos/asf/mesos-site/tree/ef7a57fc Diff:

[1/5] mesos git commit: Windows: Fixed CMake configuration for Ninja.

2018-03-07 Thread andschwa
Repository: mesos Updated Branches: refs/heads/master cece83f37 -> 0a4a900e5 Windows: Fixed CMake configuration for Ninja. Only the Visual Studio generator(s) should check the toolset. The Ninja generator requires the environment to be setup in advance, and does not have the concept of a

[4/5] mesos git commit: Updated Windows documentation.

2018-03-07 Thread andschwa
Updated Windows documentation. This notes that Developer Mode is required for non-admin symlinks, removes reference to the close JIRA epic, and adds information on how to build with Ninja on Windows. Review: https://reviews.apache.org/r/65957 Project:

[5/5] mesos git commit: Fixed implicit conversion warnings.

2018-03-07 Thread andschwa
Fixed implicit conversion warnings. This patch fixes three new "possible loss of data" implicit conversion warnings by using `static_cast` to the LHS type. Review: https://reviews.apache.org/r/65955 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[3/5] mesos git commit: Windows: Specified byproducts of `sasl2` imported target.

2018-03-07 Thread andschwa
Windows: Specified byproducts of `sasl2` imported target. This is necessary to enable the Ninja build. This was not previously fixed because we have not yet used Ninja on Windows. The same pattern is used for other imported targets. Review: https://reviews.apache.org/r/65721 Project:

[2/5] mesos git commit: Windows: Fixed location of imported libraries for Ninja.

2018-03-07 Thread andschwa
Windows: Fixed location of imported libraries for Ninja. The Ninja generator does not emit binaries to "Debug" or "Release" folders (unlike the Visual Studio generator), as it is not a multi-configuration generator. To fix this, we explicitly set the `IMPORTED_LOCATION` instead of

svn commit: r25577 - in /release/mesos: 0.28.3/ 1.0.4/ 1.1.3/ 1.2.2/ 1.2.3/ 1.3.1/ 1.4.0/

2018-03-07 Thread bmahler
Author: bmahler Date: Thu Mar 8 01:07:56 2018 New Revision: 25577 Log: Removed non-latest releases. Removed: release/mesos/0.28.3/ release/mesos/1.0.4/ release/mesos/1.1.3/ release/mesos/1.2.2/ release/mesos/1.2.3/ release/mesos/1.3.1/ release/mesos/1.4.0/

mesos-site git commit: Updated the website built from mesos SHA: 66bae08.

2018-03-07 Thread git-site-role
Repository: mesos-site Updated Branches: refs/heads/asf-site ef7a57fc5 -> d31af2ebe Updated the website built from mesos SHA: 66bae08. Project: http://git-wip-us.apache.org/repos/asf/mesos-site/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos-site/commit/d31af2eb Tree:

[06/12] mesos git commit: Avoided orphan subprocess in the Docker library.

2018-03-07 Thread gilbert
Avoided orphan subprocess in the Docker library. This patch ensures that `Docker::inspect` will not leave orphan subprocesses behind. Review: https://reviews.apache.org/r/65887/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[09/12] mesos git commit: Handled hanging docker `stop`, `inspect` commands in docker executor.

2018-03-07 Thread gilbert
Handled hanging docker `stop`, `inspect` commands in docker executor. Previosly, if `docker inspect` command hanged, the docker container ended up in an unkillable state. This patch adds a timeout for inspect command after receiving `killTask` analogically to `reaped` handler. In addition we've

[07/12] mesos git commit: Ensured that Docker containerizer returns a failed Future in one case.

2018-03-07 Thread gilbert
Ensured that Docker containerizer returns a failed Future in one case. Because the Docker library did not immediately transition the Future returned by `inspect()` to DISCARDED, it was safe for the Docker containerizer to discard this Future before failing the Promise associated with the Future

[08/12] mesos git commit: Fixed compile issue for backporting by removing 'AwaitSingleAbandon'.

2018-03-07 Thread gilbert
Fixed compile issue for backporting by removing 'AwaitSingleAbandon'. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/90184094 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/90184094 Diff:

[04/12] mesos git commit: Windows: Fixed flaky Docker command health check test.

2018-03-07 Thread gilbert
Windows: Fixed flaky Docker command health check test. The `DockerContainerizerHealthCheckTest.ROOT_DOCKER_ DockerHealthStatusChange` test was flaky on Windows, because the Docker executor manually reaps the container exit code in case that `docker run` fails to get the exit code. This logic

[05/12] mesos git commit: Updated discard handling in `Docker::inspect()`.

2018-03-07 Thread gilbert
Updated discard handling in `Docker::inspect()`. Previously, discards of the `Future` returned by `Docker::inspect()` were only handled at the beginning of each asynchronous continuation in the library function's call chain. This meant that if a Docker CLI command became stuck in between async

[10/12] mesos git commit: Added overload of process::await that takes and returns single future.

2018-03-07 Thread gilbert
Added overload of process::await that takes and returns single future. Review: https://reviews.apache.org/r/61152 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/15c194b8 Tree:

[02/12] mesos git commit: Reaped the container process directly in Docker executor.

2018-03-07 Thread gilbert
Reaped the container process directly in Docker executor. Due to a Docker issue (https://github.com/moby/moby/issues/33820), Docker daemon can fail to catch a container exit, i.e., the container process has already exited but the command `docker ps` shows the container still running, this will

[01/12] mesos git commit: Updated discard handling for Docker 'stop' and 'pull' commands.

2018-03-07 Thread gilbert
Repository: mesos Updated Branches: refs/heads/1.4.x 2b97ba53b -> 84c97007c Updated discard handling for Docker 'stop' and 'pull' commands. Review: https://reviews.apache.org/r/65787/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[12/12] mesos git commit: Added inspect retries to the docker containerizer in `update` method.

2018-03-07 Thread gilbert
Added inspect retries to the docker containerizer in `update` method. This patch fixes the bug when a terminal status update is never sent after termination of the docker executor, when the Docker daemon hangs for `inspect` command. A terminal status update is postponed until containerizer

[11/12] mesos git commit: Added inspect retries to the Docker executor.

2018-03-07 Thread gilbert
Added inspect retries to the Docker executor. This patch adds retries for `inspect` command to workaround docker daemon hangs. We assume that the docker daemon can be temporarily unresponsive. If it's unresponsive, then any started docker cli command hangs. To address the issue, we retry

[03/12] mesos git commit: Prevented Docker library from terminating incorrect processes.

2018-03-07 Thread gilbert
Prevented Docker library from terminating incorrect processes. Previously, the Docker library might call `os::killtree()` on a PID after the associated subprocess had already terminated, which could lead to an unknown process being incorrectly killed. Review: https://reviews.apache.org/r/65786/

[06/10] mesos git commit: Avoided orphan subprocess in the Docker library.

2018-03-07 Thread gilbert
Avoided orphan subprocess in the Docker library. This patch ensures that `Docker::inspect` will not leave orphan subprocesses behind. Review: https://reviews.apache.org/r/65887/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[08/10] mesos git commit: Prevented Docker library from terminating incorrect processes.

2018-03-07 Thread gilbert
Prevented Docker library from terminating incorrect processes. Previously, the Docker library might call `os::killtree()` on a PID after the associated subprocess had already terminated, which could lead to an unknown process being incorrectly killed. Review: https://reviews.apache.org/r/65786/

[10/10] mesos git commit: Added inspect retries to the docker containerizer in `update` method.

2018-03-07 Thread gilbert
Added inspect retries to the docker containerizer in `update` method. This patch fixes the bug when a terminal status update is never sent after termination of the docker executor, when the Docker daemon hangs for `inspect` command. A terminal status update is postponed until containerizer

[04/10] mesos git commit: Reaped the container process directly in Docker executor.

2018-03-07 Thread gilbert
Reaped the container process directly in Docker executor. Due to a Docker issue (https://github.com/moby/moby/issues/33820), Docker daemon can fail to catch a container exit, i.e., the container process has already exited but the command `docker ps` shows the container still running, this will

[05/10] mesos git commit: Windows: Fixed flaky Docker command health check test.

2018-03-07 Thread gilbert
Windows: Fixed flaky Docker command health check test. The `DockerContainerizerHealthCheckTest.ROOT_DOCKER_ DockerHealthStatusChange` test was flaky on Windows, because the Docker executor manually reaps the container exit code in case that `docker run` fails to get the exit code. This logic

[02/10] mesos git commit: Ensured that Docker containerizer returns a failed Future in one case.

2018-03-07 Thread gilbert
Ensured that Docker containerizer returns a failed Future in one case. Because the Docker library did not immediately transition the Future returned by `inspect()` to DISCARDED, it was safe for the Docker containerizer to discard this Future before failing the Promise associated with the Future

[03/10] mesos git commit: Updated discard handling for Docker 'stop' and 'pull' commands.

2018-03-07 Thread gilbert
Updated discard handling for Docker 'stop' and 'pull' commands. Review: https://reviews.apache.org/r/65787/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/02e32c9e Tree:

[01/10] mesos git commit: Handled hanging docker `stop`, `inspect` commands in docker executor.

2018-03-07 Thread gilbert
Repository: mesos Updated Branches: refs/heads/1.5.x 0de1cce2e -> c8dd080af Handled hanging docker `stop`, `inspect` commands in docker executor. Previosly, if `docker inspect` command hanged, the docker container ended up in an unkillable state. This patch adds a timeout for inspect command

[07/10] mesos git commit: Updated discard handling in `Docker::inspect()`.

2018-03-07 Thread gilbert
Updated discard handling in `Docker::inspect()`. Previously, discards of the `Future` returned by `Docker::inspect()` were only handled at the beginning of each asynchronous continuation in the library function's call chain. This meant that if a Docker CLI command became stuck in between async

[09/10] mesos git commit: Added inspect retries to the Docker executor.

2018-03-07 Thread gilbert
Added inspect retries to the Docker executor. This patch adds retries for `inspect` command to workaround docker daemon hangs. We assume that the docker daemon can be temporarily unresponsive. If it's unresponsive, then any started docker cli command hangs. To address the issue, we retry

[04/12] mesos git commit: Windows: Fixed flaky Docker command health check test.

2018-03-07 Thread gilbert
Windows: Fixed flaky Docker command health check test. The `DockerContainerizerHealthCheckTest.ROOT_DOCKER_ DockerHealthStatusChange` test was flaky on Windows, because the Docker executor manually reaps the container exit code in case that `docker run` fails to get the exit code. This logic

mesos-site git commit: Updated the website built from mesos SHA: cece83f.

2018-03-07 Thread git-site-role
Repository: mesos-site Updated Branches: refs/heads/asf-site dfbf78286 -> 6a99696d3 Updated the website built from mesos SHA: cece83f. Project: http://git-wip-us.apache.org/repos/asf/mesos-site/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos-site/commit/6a99696d Tree:

mesos git commit: Fixed flakyness in MasterTest.RegistryGcByCount.

2018-03-07 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 348ec1a60 -> cece83f37 Fixed flakyness in MasterTest.RegistryGcByCount. The test could fail on very slow hosts due to a timeout in the agent waiting for the registration and a subsequent re-sent `SlaveRegisteredMessage. See MESOS-8485.

[09/12] mesos git commit: Fixed compile issue for backporting by removing 'AwaitSingleAbandon'.

2018-03-07 Thread gilbert
Fixed compile issue for backporting by removing 'AwaitSingleAbandon'. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/ad74b044 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/ad74b044 Diff:

[01/12] mesos git commit: Reaped the container process directly in Docker executor.

2018-03-07 Thread gilbert
Repository: mesos Updated Branches: refs/heads/1.3.x 699f80dc3 -> 487c41fec Reaped the container process directly in Docker executor. Due to a Docker issue (https://github.com/moby/moby/issues/33820), Docker daemon can fail to catch a container exit, i.e., the container process has already

[07/12] mesos git commit: Ensured that Docker containerizer returns a failed Future in one case.

2018-03-07 Thread gilbert
Ensured that Docker containerizer returns a failed Future in one case. Because the Docker library did not immediately transition the Future returned by `inspect()` to DISCARDED, it was safe for the Docker containerizer to discard this Future before failing the Promise associated with the Future

[10/12] mesos git commit: Added overload of process::await that takes and returns single future.

2018-03-07 Thread gilbert
Added overload of process::await that takes and returns single future. Review: https://reviews.apache.org/r/61152 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/4e8394b4 Tree:

[06/12] mesos git commit: Avoided orphan subprocess in the Docker library.

2018-03-07 Thread gilbert
Avoided orphan subprocess in the Docker library. This patch ensures that `Docker::inspect` will not leave orphan subprocesses behind. Review: https://reviews.apache.org/r/65887/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[08/12] mesos git commit: Handled hanging docker `stop`, `inspect` commands in docker executor.

2018-03-07 Thread gilbert
Handled hanging docker `stop`, `inspect` commands in docker executor. Previosly, if `docker inspect` command hanged, the docker container ended up in an unkillable state. This patch adds a timeout for inspect command after receiving `killTask` analogically to `reaped` handler. In addition we've

[02/12] mesos git commit: Updated discard handling for Docker 'stop' and 'pull' commands.

2018-03-07 Thread gilbert
Updated discard handling for Docker 'stop' and 'pull' commands. Review: https://reviews.apache.org/r/65787/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/6d8b9b77 Tree:

[11/12] mesos git commit: Added inspect retries to the docker containerizer in `update` method.

2018-03-07 Thread gilbert
Added inspect retries to the docker containerizer in `update` method. This patch fixes the bug when a terminal status update is never sent after termination of the docker executor, when the Docker daemon hangs for `inspect` command. A terminal status update is postponed until containerizer

[05/12] mesos git commit: Updated discard handling in `Docker::inspect()`.

2018-03-07 Thread gilbert
Updated discard handling in `Docker::inspect()`. Previously, discards of the `Future` returned by `Docker::inspect()` were only handled at the beginning of each asynchronous continuation in the library function's call chain. This meant that if a Docker CLI command became stuck in between async