mesos git commit: Minor fix on indentation.

2016-07-21 Thread yan
Repository: mesos Updated Branches: refs/heads/master a95ab8ba1 -> b17773106 Minor fix on indentation. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b1777310 Tree:

[1/2] mesos git commit: Simplified removing whitespace with strings::replace().

2016-07-21 Thread bmahler
Repository: mesos Updated Branches: refs/heads/master b17773106 -> 19bfd8984 Simplified removing whitespace with strings::replace(). Review: https://reviews.apache.org/r/50280/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[1/6] mesos git commit: Fixed a length argument bug when reading file.

2016-07-21 Thread anand
Repository: mesos Updated Branches: refs/heads/master 19bfd8984 -> f69a27c43 Fixed a length argument bug when reading file. If length provided by client is bigger than (size - offset), the data returned by Read File API should only contain data actually read from the file. However, a length

mesos git commit: Documented the executor envirment variable 'MESOS_SANDBOX'.

2016-07-21 Thread jieyu
Repository: mesos Updated Branches: refs/heads/master f69a27c43 -> ca5710e0a Documented the executor envirment variable 'MESOS_SANDBOX'. Review: https://reviews.apache.org/r/50260/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

mesos git commit: Added a ticket to a comment for more context.

2016-07-21 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 0fde47699 -> 490aef31f Added a ticket to a comment for more context. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/490aef31 Tree:

[1/4] mesos git commit: Updated CHANGELOG with fetcher user changes.

2016-07-21 Thread jieyu
Repository: mesos Updated Branches: refs/heads/1.0.x 34ba5f417 -> 6cd20e9f3 Updated CHANGELOG with fetcher user changes. The fetcher was changed to assume the same user as a task when fetching files. This patch updates the CHANGELOG accordingly. Review: https://reviews.apache.org/r/50283/

[4/4] mesos git commit: Updated upgrades.md with fetcher user changes.

2016-07-21 Thread jieyu
Updated upgrades.md with fetcher user changes. The fetcher was changed to assume the same user as a task when fetching files. This patch updates upgrades.md accordingly. Review: https://reviews.apache.org/r/50284/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[3/4] mesos git commit: Refactored fetcher cache directory creation.

2016-07-21 Thread jieyu
Refactored fetcher cache directory creation. The fetcher's launcher creates the fetcher cache directory for each user immediately before an artifact is fetched. In order to allow this directory to be created by a different user than the user doing the fetching, this patch factors out this

[2/4] mesos git commit: Made the agent fetch files as the task user.

2016-07-21 Thread jieyu
Made the agent fetch files as the task user. To ensure that a task cannot fetch root-protected files from the local filesystem when running as a non-root user, this patch changes the fetcher to fetch files as the task user. Review: https://reviews.apache.org/r/50200/ Project:

[3/6] mesos git commit: Cleaned up header includes in stout/uuid.

2016-07-21 Thread anand
Cleaned up header includes in stout/uuid. Review: https://reviews.apache.org/r/48692/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/8edfc79c Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/8edfc79c Diff:

[4/6] mesos git commit: Added tests for `UUID::fromString()`.

2016-07-21 Thread anand
Added tests for `UUID::fromString()`. Review: https://reviews.apache.org/r/48693/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/dc002e95 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/dc002e95 Diff:

[5/6] mesos git commit: Optimized `UUID::fromString()` and `UUID::toString()` in stout.

2016-07-21 Thread anand
Optimized `UUID::fromString()` and `UUID::toString()` in stout. Rather than using `std::istringstream` and `std::ostringstream`, instead use the facilities provided by Boost's UUID for input and output respectively. This improves a simple benchmark that uses `fromString()` and `toString()` by

[2/6] mesos git commit: Fixed a file descriptor leak while reading file.

2016-07-21 Thread anand
Fixed a file descriptor leak while reading file. There were two early returns without closing the file in code common to the `ReadFile` operation in the v1 Operator API and the `/files/read` endpoint. Review: https://reviews.apache.org/r/50208/ Project:

[6/6] mesos git commit: Added logging when `Offer::Operation::Launch` has no tasks.

2016-07-21 Thread anand
Added logging when `Offer::Operation::Launch` has no tasks. Added a implict decline warning message when an offer is accepted by a framework without specifying any task to be launched. Review: https://reviews.apache.org/r/49239/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo