mesos git commit: Rationalize process wait error checking.

2017-01-19 Thread yan
Repository: mesos Updated Branches: refs/heads/master d2d8ceaa6 -> f9d30a4f7 Rationalize process wait error checking. Introduce the WSUCCEEDED() API to test that a forked process exited successfully. Use it in all the places that were performing this test bespokely, and update error logs to us

mesos git commit: Windows: Added ASF CI build script to the jenkins folder.

2017-01-19 Thread josephwu
Repository: mesos Updated Branches: refs/heads/master c7e313d7f -> d2d8ceaa6 Windows: Added ASF CI build script to the jenkins folder. This script was originally only visible to privileged users of the ASF Jenkins system. Now, the `Mesos-Windows` Jenkins job will simply batch out to this scri

[14/15] mesos git commit: Fixed expectations of `containerizer->containers()` in tests.

2017-01-19 Thread josephwu
Fixed expectations of `containerizer->containers()` in tests. Several tests that intercept and act upon this containerizer method may cause the test suite to segfault if the `containers()` method returns an empty result. This is due to the use of `EXPECT_EQ` instead of `ASSERT_EQ` when checking t

[12/15] mesos git commit: Windows: Added GC tests to the build.

2017-01-19 Thread josephwu
Windows: Added GC tests to the build. These tests are fixed by the fix to `os::rmdir` in review #55327. The tests were failing to delete sandbox folders when the sandbox was deleted before deleting the symlink to the sandbox. Review: https://reviews.apache.org/r/55328/ Project: http://git-wip-u

[15/15] mesos git commit: Fixed unsafe usage of process pointer in async.hpp.

2017-01-19 Thread josephwu
Fixed unsafe usage of process pointer in async.hpp. The `async(...)` helper spawns a libprocess actor to execute some lambda (asynchronously, of course). This actor is owned by the libprocess GC actor, but the `AsyncExecutor` stores a copy of that pointer and dereferences it in several possible l

[11/15] mesos git commit: Added human readable name to the executor ShutdownProcess.

2017-01-19 Thread josephwu
Added human readable name to the executor ShutdownProcess. For debugging purposes, this makes the ShutdownProcess appear with a pid `__shutdown_executor__(1)` instead of just `(1)`. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/co

[03/15] mesos git commit: Windows: Fixed error messages in `io::read/write`.

2017-01-19 Thread josephwu
Windows: Fixed error messages in `io::read/write`. Review: https://reviews.apache.org/r/55022/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/5fa62b5e Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/5fa62b5e Diff: ht

[08/15] mesos git commit: Windows: Fixed hanging symlink bug in `os::rmdir`.

2017-01-19 Thread josephwu
Windows: Fixed hanging symlink bug in `os::rmdir`. The Windows implementation of `os::rmdir` will fail to delete "hanging" symlinks (i.e., symlinks whose targets do not exist). Note that on Windows this bug is specific to symlinks whose targets are _deleted_, since it is impossible to create a sym

[06/15] mesos git commit: Windows: Fixed the unkillable task bug, lit up executor tests.

2017-01-19 Thread josephwu
Windows: Fixed the unkillable task bug, lit up executor tests. MESOS-6839 tracks a bug that causes the current implementation of the default executor to be unable to delete any processes associated with a task. To understand why requires some knowledge of the differences between the process model

[07/15] mesos git commit: Windows: Added more agent tests.

2017-01-19 Thread josephwu
Windows: Added more agent tests. These tests can pass with some minor scripting changes (changing the sleep command to a Windows compatible command) and due fixing subprocess lifecycles with Job Objects. Review: https://reviews.apache.org/r/55314/ Project: http://git-wip-us.apache.org/repos/asf

[10/15] mesos git commit: Windows: Removed `process::Winsock` helper.

2017-01-19 Thread josephwu
Windows: Removed `process::Winsock` helper. This helper was used as a Windows socket stack initialization guard. This code (including cleanup of the socket stack) has been moved into `process::initialize()` and `process::finalize(true)`. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo

[09/15] mesos git commit: Windows: Replaced `process::Winsock` with `process::initialize`.

2017-01-19 Thread josephwu
Windows: Replaced `process::Winsock` with `process::initialize`. Initializing the Windows socket stack is a necessary step before doing any network-related syscalls. The initialization logic now lives in `process::initialize`. This changes a few binaries to call `process::initialize` and cleanup

[01/15] mesos git commit: Added `process::initialize` to default executor's `main`.

2017-01-19 Thread josephwu
Repository: mesos Updated Branches: refs/heads/master dd922d515 -> c7e313d7f Added `process::initialize` to default executor's `main`. The default executor's `main` currently depends on `UPID`, which networking libraries to do things like retrieve the address of the current host. On Windows, t

[02/15] mesos git commit: Windows: Started and stopped the socket stack in libprocess.

2017-01-19 Thread josephwu
Windows: Started and stopped the socket stack in libprocess. Currently libprocess will attempt to use sockets without initializing the socket stack (WSA) on Windows. This commit will add WSA initialization to `process::initialize` and WSA cleanup to `process::finalize`. The WSA cleanup is option

[05/15] mesos git commit: Windows: Modified `argv[0]` of mesos-containerizer launch command.

2017-01-19 Thread josephwu
Windows: Modified `argv[0]` of mesos-containerizer launch command. On POSIX, the value of `argv[0]` generally makes no difference when launching `mesos-containerizer`. On Windows however, we will not be able to find the `mesos-containerizer.exe` binary as we launch subprocesses from `argv[0]` dir

[04/15] mesos git commit: CMake: Moved `port_mapper` sources to containerizer CMakeLists.

2017-01-19 Thread josephwu
CMake: Moved `port_mapper` sources to containerizer CMakeLists. The `port_mapper.cpp` source file is only referenced by the `mesos-cni-port-mapper` binary target and is not needed within the agent's list of sources. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wi

[13/15] mesos git commit: Windows: Added parent hooks to subprocess.

2017-01-19 Thread josephwu
Windows: Added parent hooks to subprocess. The subprocess API exposes various hooks to customize behavior as we create the child process. Currently, these hooks are unimplemented in the Windows codepaths. This commit will implement the parent hooks -- which are executed after the child process is

[1/6] mesos git commit: Moved `getRootContainerId` to `protobuf_utils`.

2017-01-19 Thread anand
Repository: mesos Updated Branches: refs/heads/master 6cf3a94a5 -> dd922d515 Moved `getRootContainerId` to `protobuf_utils`. This method is pretty generic and should not be a part of the Mesos containerizer code. Review: https://reviews.apache.org/r/55676/ Project: http://git-wip-us.apache.

[3/6] mesos git commit: Made `AttachContainerOutput/Input` tests use an existing container ID.

2017-01-19 Thread anand
Made `AttachContainerOutput/Input` tests use an existing container ID. These tests verify that the Agent returns a 500 if the containerizer doesn't support the `attach` call. This chain refactors those methods and make them return a 404 instead of a 500 if the container can't be found, so we need

[5/6] mesos git commit: Unified the way in which the Slave API handlers perform AuthZ.

2017-01-19 Thread anand
Unified the way in which the Slave API handlers perform AuthZ. Review: https://reviews.apache.org/r/55679/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/60c59adf Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/60c59

[4/6] mesos git commit: Renamed `locateExecutor` to `getExecutor`.

2017-01-19 Thread anand
Renamed `locateExecutor` to `getExecutor`. Rnamed `locateExecutor` to `getExecutor` in `slave.cpp` to be consistent with other similar functions in the same file. Review: https://reviews.apache.org/r/55678/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apa

[2/6] mesos git commit: Removed redundant `Times(1)` statements from `api_tests.cpp`.

2017-01-19 Thread anand
Removed redundant `Times(1)` statements from `api_tests.cpp`. Review: https://reviews.apache.org/r/55722/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/2fb678d2 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/2fb678

[6/6] mesos git commit: Made the Agent API able to handle containers nested at arbitrary levels.

2017-01-19 Thread anand
Made the Agent API able to handle containers nested at arbitrary levels. Review: https://reviews.apache.org/r/55464/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/dd922d51 Tree: http://git-wip-us.apache.org/repos/asf/mesos/

[2/2] mesos git commit: Minor comment fixes in the MULTI_ROLE validation tests.

2017-01-19 Thread bmahler
Minor comment fixes in the MULTI_ROLE validation tests. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/6cf3a94a Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/6cf3a94a Diff: http://git-wip-us.apache.org/repos/asf/mes

[1/2] mesos git commit: Added a test for framework upgrading to MULTI_ROLE capability.

2017-01-19 Thread bmahler
Repository: mesos Updated Branches: refs/heads/master a9857c778 -> 6cf3a94a5 Added a test for framework upgrading to MULTI_ROLE capability. Review: https://reviews.apache.org/r/55381/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/me

[3/3] mesos git commit: Added a `support/README.md` and the `support/jenkins` directory.

2017-01-19 Thread mpark
Added a `support/README.md` and the `support/jenkins` directory. Review: https://reviews.apache.org/r/55491/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/df5317fa Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/df5

[1/3] mesos git commit: Renamed executable files from '_' to '-' in the `support` directory.

2017-01-19 Thread mpark
Repository: mesos Updated Branches: refs/heads/1.1.x 6d4f559a4 -> df5317fa0 Renamed executable files from '_' to '-' in the `support` directory. Review: https://reviews.apache.org/r/55487 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/as

[2/3] mesos git commit: Fixed verify-reviews.py to call docker-build.sh.

2017-01-19 Thread mpark
Fixed verify-reviews.py to call docker-build.sh. The filename was recently changed from docker_build.sh to docker-build.sh. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/de453254 Tree: http://git-wip-us.apache.org/repos/asf

mesos git commit: Fixed verify-reviews.py to call docker-build.sh.

2017-01-19 Thread mpark
Repository: mesos Updated Branches: refs/heads/1.0.x e0d64b161 -> 92a4af7e7 Fixed verify-reviews.py to call docker-build.sh. The filename was recently changed from docker_build.sh to docker-build.sh. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.

mesos git commit: Updated Addition, modification and deletion of CNI configurations.

2017-01-19 Thread jieyu
Repository: mesos Updated Branches: refs/heads/master 6c63a3fc7 -> a9857c778 Updated Addition, modification and deletion of CNI configurations. Review: https://reviews.apache.org/r/55658/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/as

svn commit: r17895 - in /dev/mesos/1.0.3-rc1: ./ mesos-1.0.3.tar.gz mesos-1.0.3.tar.gz.asc mesos-1.0.3.tar.gz.md5

2017-01-19 Thread vinodkone
Author: vinodkone Date: Thu Jan 19 16:41:05 2017 New Revision: 17895 Log: Adding mesos-1.0.3-rc1. Added: dev/mesos/1.0.3-rc1/ dev/mesos/1.0.3-rc1/mesos-1.0.3.tar.gz (with props) dev/mesos/1.0.3-rc1/mesos-1.0.3.tar.gz.asc dev/mesos/1.0.3-rc1/mesos-1.0.3.tar.gz.md5 Added: dev/mes

[mesos] Git Push Summary

2017-01-19 Thread vinodkone
Repository: mesos Updated Tags: refs/tags/1.0.3-rc1 [created] e0d64b161

[1/2] mesos git commit: Renamed executable files from '_' to '-' in the `support` directory.

2017-01-19 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/1.0.x 8083dfe82 -> e0d64b161 Renamed executable files from '_' to '-' in the `support` directory. Review: https://reviews.apache.org/r/55487 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/as

[2/2] mesos git commit: Updated Mesos version to 1.0.3.

2017-01-19 Thread vinodkone
Updated Mesos version to 1.0.3. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e0d64b16 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e0d64b16 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/e0d64b16 Branch

[1/3] mesos git commit: Fixed issues with the Docker fetcher when using a proxy.

2017-01-19 Thread jieyu
Repository: mesos Updated Branches: refs/heads/1.1.x 4ac6038a3 -> 6d4f559a4 Fixed issues with the Docker fetcher when using a proxy. When behing a proxy, 'curl' uses HTTP CONNECT tunneling to access HTTPS. This lead to problems with our HTTP parser because the response of a 'CONNECT' doesn't h

[3/3] mesos git commit: Added MESOS-6010 to 1.1.1 CHANGELOG.

2017-01-19 Thread jieyu
Added MESOS-6010 to 1.1.1 CHANGELOG. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/6d4f559a Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/6d4f559a Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/6d4f559a B

[2/3] mesos git commit: Added support for HTTP responses with unspecified length.

2017-01-19 Thread jieyu
Added support for HTTP responses with unspecified length. Some HTTP responses might not set the 'Content-Length' header. This usually means that the message body should be read until EOF. This will be done by an additional call of 'decoder.decode' with an empty string. Review: https://reviews.apa

mesos git commit: Added MESOS-6010 to 1.1.1 CHANGELOG.

2017-01-19 Thread jieyu
Repository: mesos Updated Branches: refs/heads/master 745b3c758 -> 6c63a3fc7 Added MESOS-6010 to 1.1.1 CHANGELOG. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/6c63a3fc Tree: http://git-wip-us.apache.org/repos/asf/mesos/