[5/8] mesos git commit: Added an equality operator for `TaskGroupInfo`/`TaskInfo`.

2016-09-12 Thread anand
Added an equality operator for `TaskGroupInfo`/`TaskInfo`. This is needed for storing \`TaskGroupInfo\` in a list and then invoking \`std::find()\`/\`std::remove()\` on it. Also added a basic test in `src/tests/common/type_utils_tests.cpp`. Review: https://reviews.apache.org/r/51475/ Project: h

[4/8] mesos git commit: Implemented `RunTaskGroupMessage` handler on the agent.

2016-09-12 Thread anand
Implemented `RunTaskGroupMessage` handler on the agent. This changes implements the `runTaskGroup()` handler on the agent ensuring that task group is sent atomically to the executor via the `LAUNCH_GROUP` event. It also refactors `runTask()`/`_runTask()` to go through a common handler function. Al

[8/8] mesos git commit: Minor fix to avoid creating an unnecessary temporary when looping.

2016-09-12 Thread anand
Minor fix to avoid creating an unnecessary temporary when looping. This change is done for making the looping style consistent through the code. Review: https://reviews.apache.org/r/51710/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/

[3/8] mesos git commit: Made the `TaskInfo` argument in `launchExecutor()` optional.

2016-09-12 Thread anand
Made the `TaskInfo` argument in `launchExecutor()` optional. Launching a task group requires just the `ExecutorInfo`. We had already refactored the containerizer `launch()` interface to make `TaskInfo` as an optional. This change funnels it through. Review: https://reviews.apache.org/r/51476/ P

[7/8] mesos git commit: Added mock overloads for `runTaskGroup()`/`launchGroup()`.

2016-09-12 Thread anand
Added mock overloads for `runTaskGroup()`/`launchGroup()`. Review: https://reviews.apache.org/r/51479/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f8734b7a Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/f8734b7a

[2/8] mesos git commit: Modified tests to account for `runTask()`/`_runTask()` refactoring.

2016-09-12 Thread anand
Modified tests to account for `runTask()`/`_runTask()` refactoring. This change modified the agent mocks/tests to account for the \`runTask()\`/\`\_runTask()\` refactoring. Review: https://reviews.apache.org/r/51478/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-

[1/8] mesos git commit: Added tests for launching task groups on the agent.

2016-09-12 Thread anand
Repository: mesos Updated Branches: refs/heads/master 00815ee93 -> 170c01f1a Added tests for launching task groups on the agent. This change adds tests for testing the `runTaskGroup()` handler on the agent. Review: https://reviews.apache.org/r/51480/ Project: http://git-wip-us.apache.org/re

[6/8] mesos git commit: Removed a no longer needed comment after the `runTasks()` refactoring.

2016-09-12 Thread anand
Removed a no longer needed comment after the `runTasks()` refactoring. Review: https://reviews.apache.org/r/51709/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/2b61afe5 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tr

mesos git commit: Fixed potential FD double close in the libevent socket.

2016-09-12 Thread josephwu
Repository: mesos Updated Branches: refs/heads/master 630e4c9bc -> 00815ee93 Fixed potential FD double close in the libevent socket. `evbuffer_add_file` will take ownership of the file descriptor passed into it. Normally, this file descriptor is owned by the `FileEncoder` in the libprocess's

mesos git commit: Added missing #includes in docker containerizer.

2016-09-12 Thread bmahler
Repository: mesos Updated Branches: refs/heads/master 0b623f9d2 -> 630e4c9bc Added missing #includes in docker containerizer. Review: https://reviews.apache.org/r/51425/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/630

mesos git commit: Added meta tags in project website to support Twitter Cards.

2016-09-12 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 3562f95d0 -> 0b623f9d2 Added meta tags in project website to support Twitter Cards. Slack depends on Twitter Summary Card to show small preview logo. This patch followed https://dev.twitter.com/cards/types/summary to add meta tags in projec