[7/8] mesos git commit: Changed `os::spawn()` to return `Option` instead of `int`.

2018-03-06 Thread andschwa
Changed `os::spawn()` to return `Option` instead of `int`.

Similar to `os::system()`, `os::spawn()` returned `-1` on error, which
is a valid exit code on Windows. Using the same solution as
`os::system()`, now when `os::spawn()` fails, `None()` will be
returned. Otherwise, the process exit code will be returned.

Review: https://reviews.apache.org/r/65842/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/1971a547
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/1971a547
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/1971a547

Branch: refs/heads/master
Commit: 1971a5477f9a0ad9c5c542a0377b32fd7936a219
Parents: 765c834
Author: Akash Gupta 
Authored: Tue Mar 6 13:11:25 2018 -0800
Committer: Andrew Schwartzmeyer 
Committed: Tue Mar 6 13:52:47 2018 -0800

--
 .../stout/include/stout/os/posix/copyfile.hpp   | 11 +-
 3rdparty/stout/include/stout/os/posix/shell.hpp | 17 
 .../stout/include/stout/os/windows/shell.hpp| 21 
 3 files changed, 23 insertions(+), 26 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/mesos/blob/1971a547/3rdparty/stout/include/stout/os/posix/copyfile.hpp
--
diff --git a/3rdparty/stout/include/stout/os/posix/copyfile.hpp 
b/3rdparty/stout/include/stout/os/posix/copyfile.hpp
index 0d9ed5b..bb5ec71 100644
--- a/3rdparty/stout/include/stout/os/posix/copyfile.hpp
+++ b/3rdparty/stout/include/stout/os/posix/copyfile.hpp
@@ -17,11 +17,12 @@
 
 #include 
 #include 
-#include 
+#include 
 #include 
 #include 
 #include 
 
+#include 
 
 namespace os {
 
@@ -56,14 +57,14 @@ inline Try copyfile(
 return Error("`destination` was a relative path");
   }
 
-  const int status = os::spawn("cp", {"cp", source, destination});
+  const Option status = os::spawn("cp", {"cp", source, destination});
 
-  if (status == -1) {
+  if (status.isNone()) {
 return ErrnoError("os::spawn failed");
   }
 
-  if (!(WIFEXITED(status) && WEXITSTATUS(status) == 0)) {
-return Error("cp failed with status: " + stringify(status));
+  if (!(WIFEXITED(status.get()) && WEXITSTATUS(status.get()) == 0)) {
+return Error("cp failed with status: " + stringify(status.get()));
   }
 
   return Nothing();

http://git-wip-us.apache.org/repos/asf/mesos/blob/1971a547/3rdparty/stout/include/stout/os/posix/shell.hpp
--
diff --git a/3rdparty/stout/include/stout/os/posix/shell.hpp 
b/3rdparty/stout/include/stout/os/posix/shell.hpp
index b6e3deb..de6ef23 100644
--- a/3rdparty/stout/include/stout/os/posix/shell.hpp
+++ b/3rdparty/stout/include/stout/os/posix/shell.hpp
@@ -153,19 +153,20 @@ inline Option system(const std::string& command)
   }
 }
 
-// Executes a command by calling " ", and
-// returns after the command has been completed. Returns 0 if
-// succeeds, and -1 on error (e.g., fork/exec/waitpid failed). This
-// function is async signal safe. We return int instead of returning a
-// Try because Try involves 'new', which is not async signal safe.
-inline int spawn(
+// Executes a command by calling " ", and returns after
+// the command has been completed. Returns the exit code on success and `None`
+// on error (e.g., fork/exec/waitpid failed). This function is async signal
+// safe. We return an `Option` instead of a `Try`, because although
+// `Try` does not dynamically allocate, `Error` uses `std::string`, which is
+// not async signal safe.
+inline Option spawn(
 const std::string& command,
 const std::vector& arguments)
 {
   pid_t pid = ::fork();
 
   if (pid == -1) {
-return -1;
+return None();
   } else if (pid == 0) {
 // In child process.
 ::execvp(command.c_str(), os::raw::Argv(arguments));
@@ -175,7 +176,7 @@ inline int spawn(
 int status;
 while (::waitpid(pid, , 0) == -1) {
   if (errno != EINTR) {
-return -1;
+return None();
   }
 }
 

http://git-wip-us.apache.org/repos/asf/mesos/blob/1971a547/3rdparty/stout/include/stout/os/windows/shell.hpp
--
diff --git a/3rdparty/stout/include/stout/os/windows/shell.hpp 
b/3rdparty/stout/include/stout/os/windows/shell.hpp
index c0b9efa..aacd746 100644
--- a/3rdparty/stout/include/stout/os/windows/shell.hpp
+++ b/3rdparty/stout/include/stout/os/windows/shell.hpp
@@ -362,9 +362,9 @@ inline int execlp(const char* file, T... t) = delete;
 
 
 // Executes a command by calling " ", and
-// returns after the command has been completed. Returns process exit code if
-// succeeds, and -1 on error.
-inline int spawn(
+// returns after the command has been completed. Returns the process exit
+// 

[1/8] mesos git commit: Windows: Removed `WTERMSIG` etc. signal macros from `windows.hpp`.

2018-03-06 Thread andschwa
Repository: mesos
Updated Branches:
  refs/heads/master 0d247c388 -> be8be3b88


Windows: Removed `WTERMSIG` etc. signal macros from `windows.hpp`.

We defined a few macros for testing the status value of `::waitpid()`
in `windows.hpp`. These these macros handled signal logic (which is
generally unused on Windows, and when used, done so inconsistently),
they were removed.

Review: https://reviews.apache.org/r/65839/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/76cf8efd
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/76cf8efd
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/76cf8efd

Branch: refs/heads/master
Commit: 76cf8efd65969b25a3f26bc876408881c798061c
Parents: 0d247c3
Author: Akash Gupta 
Authored: Tue Mar 6 13:11:09 2018 -0800
Committer: Andrew Schwartzmeyer 
Committed: Tue Mar 6 13:28:30 2018 -0800

--
 3rdparty/stout/include/stout/gtest.hpp   |  5 +
 3rdparty/stout/include/stout/windows.hpp | 25 -
 2 files changed, 5 insertions(+), 25 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/mesos/blob/76cf8efd/3rdparty/stout/include/stout/gtest.hpp
--
diff --git a/3rdparty/stout/include/stout/gtest.hpp 
b/3rdparty/stout/include/stout/gtest.hpp
index ce6e4de..ae0c3d5 100644
--- a/3rdparty/stout/include/stout/gtest.hpp
+++ b/3rdparty/stout/include/stout/gtest.hpp
@@ -249,6 +249,7 @@ inline ::testing::AssertionResult AssertExited(
 {
   if (WIFEXITED(actual)) {
 return ::testing::AssertionSuccess();
+#ifndef __WINDOWS__
   } else if (WIFSIGNALED(actual)) {
 return ::testing::AssertionFailure()
   << "Expecting WIFEXITED(" << actualExpr << ") but "
@@ -259,6 +260,7 @@ inline ::testing::AssertionResult AssertExited(
   << "Expecting WIFEXITED(" << actualExpr << ") but"
   << " WIFSTOPPED(" << actualExpr << ") is true and "
   << "WSTOPSIG(" << actualExpr << ") is " << strsignal(WSTOPSIG(actual));
+#endif // __WINDOWS__
   }
 
   return ::testing::AssertionFailure()
@@ -340,6 +342,8 @@ inline ::testing::AssertionResult AssertExitStatusNe(
   EXPECT_PRED_FORMAT2(AssertExitStatusNe, expected, actual)
 
 
+// Signals aren't used in Windows, so #ifdef these out.
+#ifndef __WINDOWS__
 inline ::testing::AssertionResult AssertSignaled(
 const char* actualExpr,
 const int actual)
@@ -434,5 +438,6 @@ inline ::testing::AssertionResult AssertTermSigNe(
 
 #define EXPECT_WTERMSIG_NE(expected, actual)\
   EXPECT_PRED_FORMAT2(AssertTermSigNe, expected, actual)
+#endif // __WINDOWS__
 
 #endif // __STOUT_GTEST_HPP__

http://git-wip-us.apache.org/repos/asf/mesos/blob/76cf8efd/3rdparty/stout/include/stout/windows.hpp
--
diff --git a/3rdparty/stout/include/stout/windows.hpp 
b/3rdparty/stout/include/stout/windows.hpp
index b35e6b9..8f7817a 100644
--- a/3rdparty/stout/include/stout/windows.hpp
+++ b/3rdparty/stout/include/stout/windows.hpp
@@ -380,35 +380,10 @@ inline const char* strsignal(int signum)
 #define WIFSIGNALED(x) ((x) != -1)
 #endif // WIFSIGNALED
 
-// Returns the number of the signal that caused the child process to
-// terminate, only be used if WIFSIGNALED is true.
-#ifndef WTERMSIG
-#define WTERMSIG(x) 0
-#endif // WTERMSIG
-
-// Whether the child produced a core dump, only be used if WIFSIGNALED is true.
-#ifndef WCOREDUMP
-#define WCOREDUMP(x) false
-#endif // WCOREDUMP
-
-// Whether the child was stopped by delivery of a signal.
-#ifndef WIFSTOPPED
-#define WIFSTOPPED(x) false
-#endif // WIFSTOPPED
-
-// Whether the child was stopped by delivery of a signal.
-#ifndef WSTOPSIG
-#define WSTOPSIG(x) 0
-#endif // WSTOPSIG
-
 // Specifies that `::waitpid` should return immediately rather than
 // blocking and waiting for child to notify of state change.
 #ifndef WNOHANG
 #define WNOHANG 1
 #endif // WNOHANG
 
-#ifndef WUNTRACED
-#define WUNTRACED   2 // Tell about stopped, untraced children.
-#endif // WUNTRACED
-
 #endif // __STOUT_WINDOWS_HPP__



[4/8] mesos git commit: Windows: Fixed `WIFEXITED` and `WIFSIGNALED` stubs.

2018-03-06 Thread andschwa
Windows: Fixed `WIFEXITED` and `WIFSIGNALED` stubs.

The `WIFEXITED` and `WIFSIGNALED` macros were incorrectly checking if
the exit code was not -1 to determine if the process exited or was
signaled. However, -1 is a valid return code on Windows, so when logic
like `CHECK(WIFEXITED(status)|| WIFSIGNALED(status))` was used, it
would end up aborting the process accidentally.

For `WIFEXITED`, we simply return `true` because all error codes on
Windows indicate the process exited (if the process instead failed to
spawn, then `os::spawn()` would return `None()` instead of an exit
code).

For `WIFIGNALED`, we simply return `false` for similar reasons. We
assume the process did not exit due to a signal, as that is not an
expected scenario on Windows.

Review: https://reviews.apache.org/r/65840/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/ca357e95
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/ca357e95
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/ca357e95

Branch: refs/heads/master
Commit: ca357e95f62604329dcb57076af10a86e8c25a41
Parents: 5ca0f58
Author: Akash Gupta 
Authored: Tue Mar 6 13:11:19 2018 -0800
Committer: Andrew Schwartzmeyer 
Committed: Tue Mar 6 13:41:49 2018 -0800

--
 3rdparty/stout/include/stout/windows.hpp | 15 +++
 1 file changed, 11 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/mesos/blob/ca357e95/3rdparty/stout/include/stout/windows.hpp
--
diff --git a/3rdparty/stout/include/stout/windows.hpp 
b/3rdparty/stout/include/stout/windows.hpp
index 8f7817a..1bfcdf4 100644
--- a/3rdparty/stout/include/stout/windows.hpp
+++ b/3rdparty/stout/include/stout/windows.hpp
@@ -364,10 +364,13 @@ inline const char* strsignal(int signum)
 
 #define SIGPIPE 100
 
-// `os::system` returns -1 if the processor cannot be started
-// therefore any return value indicates the process has been started
+// On Windows, the exit code, unlike Linux, is simply a 32 bit unsigned integer
+// with no special encoding. Since the `status` value from `waitpid` returns a
+// 32 bit integer, we can't use it to determine if the process exited normally,
+// because all the possibilities could be valid exit codes. So, we assume that
+// if we get an exit code, the process exited normally.
 #ifndef WIFEXITED
-#define WIFEXITED(x) ((x) != -1)
+#define WIFEXITED(x) true
 #endif // WIFEXITED
 
 // Returns the exit status of the child.
@@ -376,8 +379,12 @@ inline const char* strsignal(int signum)
 #define WEXITSTATUS(x) static_cast(x)
 #endif // WEXITSTATUS
 
+// A signaled Windows process always exits with status code 3, but it's
+// impossible to distinguish that from a process that exits normally with
+// status code 3. Since signals aren't really used on Windows, we will
+// assume that the process is not signaled.
 #ifndef WIFSIGNALED
-#define WIFSIGNALED(x) ((x) != -1)
+#define WIFSIGNALED(x) false
 #endif // WIFSIGNALED
 
 // Specifies that `::waitpid` should return immediately rather than



[3/8] mesos git commit: Windows: Removed signal macros in `checks/checker_process.cpp`.

2018-03-06 Thread andschwa
Windows: Removed signal macros in `checks/checker_process.cpp`.

The `__nestedCommandCheck()` implementation in `checker_process.cpp`
uses signals to determine if the task has been killed. This logic has
been removed on Windows, since signals aren't used on Windows. A
different implementation will be needed when nested command checks
work on Windows, but we remove it for now in order to build.

Review: https://reviews.apache.org/r/65862/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/5ca0f581
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/5ca0f581
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/5ca0f581

Branch: refs/heads/master
Commit: 5ca0f5818b282762a94e13854a8ba914fa85edbb
Parents: 4c50a55
Author: Akash Gupta 
Authored: Tue Mar 6 13:11:17 2018 -0800
Committer: Andrew Schwartzmeyer 
Committed: Tue Mar 6 13:38:56 2018 -0800

--
 src/checks/checker_process.cpp | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/mesos/blob/5ca0f581/src/checks/checker_process.cpp
--
diff --git a/src/checks/checker_process.cpp b/src/checks/checker_process.cpp
index cf9ec05..7e48451 100644
--- a/src/checks/checker_process.cpp
+++ b/src/checks/checker_process.cpp
@@ -826,13 +826,17 @@ void CheckerProcess::___nestedCommandCheck(
 .onReady([promise](const Option& status) -> void {
   if (status.isNone()) {
 promise->fail("Unable to get the exit code");
-  // TODO(gkleiman): Make sure that the following block works on Windows.
+#ifndef __WINDOWS__
+  // TODO(akagup): Implement this for Windows. The `WaitNestedContainer`
+  // has a `TaskState` field, so we can probably use that for determining
+  // if the task failed.
   } else if (WIFSIGNALED(status.get()) &&
  WTERMSIG(status.get()) == SIGKILL) {
 // The check container was signaled, probably because the task
 // finished while the check was still in-flight, so we discard
 // the result.
 promise->discard();
+#endif // __WINDOWS__
   } else {
 promise->set(status.get());
   }



[2/8] mesos git commit: Windows: Removed `AwaitAssertSignaled` etc. from `gtest.hpp`.

2018-03-06 Thread andschwa
Windows: Removed `AwaitAssertSignaled` etc. from `gtest.hpp`.

Because Windows does not generally use signals, and so does not have
macros like `WTERMSIG`, the `gtest.hpp` wrapper code which depends on
them is no longer compiled on Windows.

Review: https://reviews.apache.org/r/65861/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/4c50a551
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/4c50a551
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/4c50a551

Branch: refs/heads/master
Commit: 4c50a55122bd353862d8d9164861c1143c8d9a8b
Parents: 76cf8ef
Author: Akash Gupta 
Authored: Tue Mar 6 13:11:14 2018 -0800
Committer: Andrew Schwartzmeyer 
Committed: Tue Mar 6 13:31:42 2018 -0800

--
 3rdparty/libprocess/include/process/gtest.hpp | 3 +++
 1 file changed, 3 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/mesos/blob/4c50a551/3rdparty/libprocess/include/process/gtest.hpp
--
diff --git a/3rdparty/libprocess/include/process/gtest.hpp 
b/3rdparty/libprocess/include/process/gtest.hpp
index dd4c9bd..79ea2b1 100644
--- a/3rdparty/libprocess/include/process/gtest.hpp
+++ b/3rdparty/libprocess/include/process/gtest.hpp
@@ -712,6 +712,8 @@ inline ::testing::AssertionResult AwaitAssertExitStatusNe(
   process::TEST_AWAIT_TIMEOUT)
 
 
+// Signals are't used on Windows, so #ifdef these out.
+#ifndef __WINDOWS__
 inline ::testing::AssertionResult AwaitAssertSignaled(
 const char* actualExpr,
 const char* durationExpr,
@@ -851,5 +853,6 @@ inline ::testing::AssertionResult AwaitAssertTermSigNe(
 // inline ::testing::AssertionResult AwaitAssertStopped(...)
 // inline ::testing::AssertionResult AwaitAssertStopSigEq(...)
 // inline ::testing::AssertionResult AwaitAssertStopSigNe(...)
+#endif // __WINDOWS__
 
 #endif // __PROCESS_GTEST_HPP__



[6/8] mesos git commit: Fixed Mesos since `os::system()` now returns an `Option`.

2018-03-06 Thread andschwa
Fixed Mesos since `os::system()` now returns an `Option`.

The `os::system()` function now returns `None()` for a launch failure
instead of `-1`, and a `Some(exit_code)` for success.

Review: https://reviews.apache.org/r/65863/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/765c8343
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/765c8343
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/765c8343

Branch: refs/heads/master
Commit: 765c8343813e5c64775bca6757b4cd42356636ad
Parents: 330ddcb
Author: Akash Gupta 
Authored: Tue Mar 6 13:11:23 2018 -0800
Committer: Andrew Schwartzmeyer 
Committed: Tue Mar 6 13:52:35 2018 -0800

--
 src/slave/containerizer/mesos/launch.cpp   | 14 +-
 src/tests/containerizer/cgroups_isolator_tests.cpp |  6 +++---
 src/tests/containerizer/memory_pressure_tests.cpp  |  2 +-
 src/tests/environment.cpp  |  2 +-
 4 files changed, 14 insertions(+), 10 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/mesos/blob/765c8343/src/slave/containerizer/mesos/launch.cpp
--
diff --git a/src/slave/containerizer/mesos/launch.cpp 
b/src/slave/containerizer/mesos/launch.cpp
index 75b7eaf..8c739cc 100644
--- a/src/slave/containerizer/mesos/launch.cpp
+++ b/src/slave/containerizer/mesos/launch.cpp
@@ -33,6 +33,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -641,7 +642,7 @@ int MesosContainerizerLaunch::execute()
 cout << "Executing pre-exec command '"
  << JSON::protobuf(command) << "'" << endl;
 
-int status = 0;
+Option status;
 
 if (command.shell()) {
   // Execute the command using the system shell.
@@ -657,11 +658,14 @@ int MesosContainerizerLaunch::execute()
   status = os::spawn(command.value(), args);
 }
 
-if (!WSUCCEEDED(status)) {
+if (status.isNone() || !WSUCCEEDED(status.get())) {
   cerr << "Failed to execute pre-exec command '"
-   << JSON::protobuf(command) << "': "
-   << WSTRINGIFY(status)
-   << endl;
+   << JSON::protobuf(command) << "': ";
+  if (status.isNone()) {
+cerr << "exited with unknown status" << endl;
+  } else {
+cerr << WSTRINGIFY(status.get()) << endl;
+  }
   exitWithStatus(EXIT_FAILURE);
 }
   }

http://git-wip-us.apache.org/repos/asf/mesos/blob/765c8343/src/tests/containerizer/cgroups_isolator_tests.cpp
--
diff --git a/src/tests/containerizer/cgroups_isolator_tests.cpp 
b/src/tests/containerizer/cgroups_isolator_tests.cpp
index 59b23be..40c18a1 100644
--- a/src/tests/containerizer/cgroups_isolator_tests.cpp
+++ b/src/tests/containerizer/cgroups_isolator_tests.cpp
@@ -217,7 +217,7 @@ TEST_F(CgroupsIsolatorTest, 
ROOT_CGROUPS_PERF_NET_CLS_UserCgroup)
 
 // Verify that the user cannot manipulate the container's cgroup
 // control files as their owner is root.
-EXPECT_NE(0, os::system(strings::format(
+EXPECT_SOME_NE(0, os::system(strings::format(
 "su - nobody -s /bin/sh -c 'echo $$ > %s'",
 path::join(hierarchy.get(), cgroup, "cgroup.procs")).get()));
 
@@ -225,13 +225,13 @@ TEST_F(CgroupsIsolatorTest, 
ROOT_CGROUPS_PERF_NET_CLS_UserCgroup)
 // cgroup as the isolator changes the owner of the cgroup.
 string userCgroup = path::join(cgroup, "user");
 
-EXPECT_EQ(0, os::system(strings::format(
+EXPECT_SOME_EQ(0, os::system(strings::format(
 "su - nobody -s /bin/sh -c 'mkdir %s'",
 path::join(hierarchy.get(), userCgroup)).get()));
 
 // Verify that the user can manipulate control files in the
 // created cgroup as it's owned by the user.
-EXPECT_EQ(0, os::system(strings::format(
+EXPECT_SOME_EQ(0, os::system(strings::format(
 "su - nobody -s /bin/sh -c 'echo $$ > %s'",
 path::join(hierarchy.get(), userCgroup, "cgroup.procs")).get()));
 

http://git-wip-us.apache.org/repos/asf/mesos/blob/765c8343/src/tests/containerizer/memory_pressure_tests.cpp
--
diff --git a/src/tests/containerizer/memory_pressure_tests.cpp 
b/src/tests/containerizer/memory_pressure_tests.cpp
index 0c3e738..488051d 100644
--- a/src/tests/containerizer/memory_pressure_tests.cpp
+++ b/src/tests/containerizer/memory_pressure_tests.cpp
@@ -68,7 +68,7 @@ public:
 
 // Verify that the dd command and its flags used in a bit are valid
 // on this system.
-ASSERT_EQ(0, os::system("dd count=1 bs=1M if=/dev/zero of=/dev/null"))
+ASSERT_SOME_EQ(0, os::system("dd count=1 bs=1M if=/dev/zero of=/dev/null"))
   << "Cannot find a compatible 

[5/8] mesos git commit: Changed `os::system()` to return `Option` instead of `int`.

2018-03-06 Thread andschwa
Changed `os::system()` to return `Option` instead of `int`.

The `os::system()` function returned `-1` on error, which is a valid
exit code on Windows, e.g., `os::system("exit -1")`, so it was
impossible to distinguish a failure from a process returning `-1`.
With `Option`, failures will return as `None()`.

Review: https://reviews.apache.org/r/65841/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/330ddcb5
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/330ddcb5
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/330ddcb5

Branch: refs/heads/master
Commit: 330ddcb517c7e01003915948d87932990c7b9004
Parents: ca357e9
Author: Akash Gupta 
Authored: Tue Mar 6 13:11:21 2018 -0800
Committer: Andrew Schwartzmeyer 
Committed: Tue Mar 6 13:51:56 2018 -0800

--
 3rdparty/stout/include/stout/os/posix/shell.hpp   | 18 ++
 3rdparty/stout/include/stout/os/windows/shell.hpp | 14 ++
 3rdparty/stout/tests/os/rmdir_tests.cpp   |  3 ++-
 3rdparty/stout/tests/os_tests.cpp | 12 ++--
 4 files changed, 28 insertions(+), 19 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/mesos/blob/330ddcb5/3rdparty/stout/include/stout/os/posix/shell.hpp
--
diff --git a/3rdparty/stout/include/stout/os/posix/shell.hpp 
b/3rdparty/stout/include/stout/os/posix/shell.hpp
index b878718..b6e3deb 100644
--- a/3rdparty/stout/include/stout/os/posix/shell.hpp
+++ b/3rdparty/stout/include/stout/os/posix/shell.hpp
@@ -25,6 +25,8 @@
 
 #include 
 #include 
+#include 
+#include 
 #include 
 
 #include 
@@ -117,22 +119,22 @@ Try shell(const std::string& fmt, const 
T&... t)
 
 
 // Executes a command by calling "/bin/sh -c ", and returns
-// after the command has been completed. Returns 0 if succeeds, and
-// return -1 on error (e.g., fork/exec/waitpid failed). This function
-// is async signal safe. We return int instead of returning a Try
-// because Try involves 'new', which is not async signal safe.
+// after the command has been completed. Returns the exit code on success
+// and `None` on error (e.g., fork/exec/waitpid failed). This function
+// is async signal safe. We return an `Option` instead of a `Try`,
+// because although `Try` does not dynamically allocate, `Error` uses
+// `std::string`, which is not async signal safe.
 //
 // Note: Be cautious about shell injection
 // (https://en.wikipedia.org/wiki/Code_injection#Shell_injection)
 // when using this method and use proper validation and sanitization
 // on the `command`. For this reason in general `os::spawn` is
 // preferred if a shell is not required.
-inline int system(const std::string& command)
+inline Option system(const std::string& command)
 {
   pid_t pid = ::fork();
-
   if (pid == -1) {
-return -1;
+return None();
   } else if (pid == 0) {
 // In child process.
 ::execlp(
@@ -143,7 +145,7 @@ inline int system(const std::string& command)
 int status;
 while (::waitpid(pid, , 0) == -1) {
   if (errno != EINTR) {
-return -1;
+return None();
   }
 }
 

http://git-wip-us.apache.org/repos/asf/mesos/blob/330ddcb5/3rdparty/stout/include/stout/os/windows/shell.hpp
--
diff --git a/3rdparty/stout/include/stout/os/windows/shell.hpp 
b/3rdparty/stout/include/stout/os/windows/shell.hpp
index 1696d08..c0b9efa 100644
--- a/3rdparty/stout/include/stout/os/windows/shell.hpp
+++ b/3rdparty/stout/include/stout/os/windows/shell.hpp
@@ -24,6 +24,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -394,17 +395,22 @@ inline int spawn(
 
 
 // Executes a command by calling "cmd /c ", and returns
-// after the command has been completed. Returns exit code if succeeds, and
-// return -1 on error.
+// after the command has been completed. Returns the process exit
+// code on success and `None` on error.
 //
 // Note: Be cautious about shell injection
 // (https://en.wikipedia.org/wiki/Code_injection#Shell_injection)
 // when using this method and use proper validation and sanitization
 // on the `command`. For this reason in general `os::spawn` is
 // preferred if a shell is not required.
-inline int system(const std::string& command)
+inline Option system(const std::string& command)
 {
-  return os::spawn(Shell::name, {Shell::arg0, Shell::arg1, command});
+  // TODO(akagup): Change `os::spawn` to return `Option` as well.
+  int pid = os::spawn(Shell::name, {Shell::arg0, Shell::arg1, command});
+  if (pid == -1) {
+return None();
+  }
+  return pid;
 }
 
 

http://git-wip-us.apache.org/repos/asf/mesos/blob/330ddcb5/3rdparty/stout/tests/os/rmdir_tests.cpp

[8/8] mesos git commit: Fixed Mesos since `os::spawn()` now returns an `Option`.

2018-03-06 Thread andschwa
Fixed Mesos since `os::spawn()` now returns an `Option`.

The `os::spawn()` function now returns `None()` for a launch failure
instead of `-1`, and a `Some(exit_code)` for success.

Review: https://reviews.apache.org/r/65864/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/be8be3b8
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/be8be3b8
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/be8be3b8

Branch: refs/heads/master
Commit: be8be3b88ec0c1bddd461cb2ed1396ebd8f03b70
Parents: 1971a54
Author: Akash Gupta 
Authored: Tue Mar 6 13:11:27 2018 -0800
Committer: Andrew Schwartzmeyer 
Committed: Tue Mar 6 13:52:56 2018 -0800

--
 src/linux/fs.cpp | 15 ---
 .../mesos/isolators/network/cni/cni.cpp  | 10 ++
 src/tests/containerizer/perf_tests.cpp   |  4 +++-
 3 files changed, 17 insertions(+), 12 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/mesos/blob/be8be3b8/src/linux/fs.cpp
--
diff --git a/src/linux/fs.cpp b/src/linux/fs.cpp
index dae0942..ed26f80 100644
--- a/src/linux/fs.cpp
+++ b/src/linux/fs.cpp
@@ -38,16 +38,16 @@ extern "C" {
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
+#include 
+#include 
 #include 
 #include 
 #include 
 
-#include 
-#include 
-
 #include 
 #include 
 #include 
@@ -554,17 +554,18 @@ Try unmountAll(const string& target, int flags)
   // still catch the error here in case there's an error somewhere
   // else while running this command.
   // TODO(xujyan): Consider using `setmntent(3)` to implement this.
-  int status = os::spawn("umount", {"umount", "--fake", entry.dir});
+  const Option status =
+os::spawn("umount", {"umount", "--fake", entry.dir});
 
   const string message =
 "Failed to clean up '" + entry.dir + "' in /etc/mtab";
 
-  if (status == -1) {
+  if (status.isNone()) {
 return ErrnoError(message);
   }
 
-  if (!WSUCCEEDED(status)) {
-return Error(message + ": " + WSTRINGIFY(status));
+  if (!WSUCCEEDED(status.get())) {
+return Error(message + ": " + WSTRINGIFY(status.get()));
   }
 }
   }

http://git-wip-us.apache.org/repos/asf/mesos/blob/be8be3b8/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp
--
diff --git a/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp 
b/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp
index c60c23f..d8dc02a 100644
--- a/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp
+++ b/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp
@@ -27,6 +27,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -2077,20 +2078,21 @@ int NetworkCniIsolatorSetup::execute()
   return EXIT_FAILURE;
 }
 
-int status = os::spawn("ifconfig", {"ifconfig", "lo", "up"});
+const Option status = os::spawn("ifconfig", {"ifconfig", "lo", "up"});
 
 const string message =
   "Failed to bring up the loopback interface in the new "
   "network namespace of pid " + stringify(flags.pid.get());
 
-if (status == -1) {
+if (status.isNone()) {
   cerr << message << ": " << "os::spawn failed: "
<< os::strerror(errno) << endl;
   return EXIT_FAILURE;
 }
 
-if (!WSUCCEEDED(status)) {
-  cerr << message << ": 'ifconfig lo up' " << WSTRINGIFY(status) << endl;
+if (!WSUCCEEDED(status.get())) {
+  cerr << message << ": 'ifconfig lo up' "
+   << WSTRINGIFY(status.get()) << endl;
   return EXIT_FAILURE;
 }
   }

http://git-wip-us.apache.org/repos/asf/mesos/blob/be8be3b8/src/tests/containerizer/perf_tests.cpp
--
diff --git a/src/tests/containerizer/perf_tests.cpp 
b/src/tests/containerizer/perf_tests.cpp
index d8aab08..7176240 100644
--- a/src/tests/containerizer/perf_tests.cpp
+++ b/src/tests/containerizer/perf_tests.cpp
@@ -24,6 +24,7 @@
 #include 
 
 #include 
+#include 
 #include 
 #include 
 
@@ -137,7 +138,8 @@ TEST_F(PerfTest, Version)
   // version, make sure we can parse it using the perf library.
   // Note that on some systems, perf is a stub that asks you to
   // install the right packages.
-  if (WSUCCEEDED(os::spawn("perf", {"perf", "--version"}))) {
+  const Option status = os::spawn("perf", {"perf", "--version"});
+  if (status.isSome() && WSUCCEEDED(status.get())) {
 AWAIT_READY(perf::version());
   }
 



[11/11] mesos-site git commit: Updated the website built from mesos SHA: be8be3b.

2018-03-06 Thread git-site-role
Updated the website built from mesos SHA: be8be3b.


Project: http://git-wip-us.apache.org/repos/asf/mesos-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos-site/commit/2306ff3e
Tree: http://git-wip-us.apache.org/repos/asf/mesos-site/tree/2306ff3e
Diff: http://git-wip-us.apache.org/repos/asf/mesos-site/diff/2306ff3e

Branch: refs/heads/asf-site
Commit: 2306ff3ed2275c2b23c5fe12fd0f1aee6116da9f
Parents: 53f3d24
Author: jenkins 
Authored: Tue Mar 6 23:49:06 2018 +
Committer: jenkins 
Committed: Tue Mar 6 23:49:06 2018 +

--
 ...ess_2include_2process_2http_8hpp_source.html |   2 +-
 ..._2process_2metrics_2metrics_8hpp_source.html |   2 +-
 ...nclude_2stout_2flags_2flags_8hpp_source.html |   2 +-
 ..._2stout_2include_2stout_2ip_8hpp_source.html |   2 +-
 ..._2include_2stout_2posix_2ip_8hpp_source.html |   2 +-
 ...t_2include_2stout_2protobuf_8hpp_source.html |   2 +-
 ...include_2stout_2windows_2ip_8hpp_source.html |   2 +-
 ...ty_2stout_2include_2stout_2windows_8hpp.html |  92 +-
 ...ut_2include_2stout_2windows_8hpp_source.html |  78 +-
 content/api/latest/c++/Nodes.xml|  33 +-
 content/api/latest/c++/Tokens.xml   |  64 +-
 content/api/latest/c++/convert_8hpp_source.html |   2 +-
 .../api/latest/c++/csi_2paths_8hpp_source.html  |   2 +-
 content/api/latest/c++/daemon_8hpp_source.html  |   2 +-
 .../latest/c++/docker__archive_8hpp_source.html |   2 +-
 content/api/latest/c++/driver_8hpp_source.html  |   2 +-
 content/api/latest/c++/elf_8hpp_source.html |   2 +-
 content/api/latest/c++/event_8hpp_source.html   |   2 +-
 content/api/latest/c++/flag_8hpp_source.html|   2 +-
 content/api/latest/c++/globals_0x75.html|   6 +-
 content/api/latest/c++/globals_0x77.html|  15 -
 content/api/latest/c++/globals_defs_0x77.html   |  15 -
 content/api/latest/c++/gmock_8hpp_source.html   |   2 +-
 content/api/latest/c++/help_8hpp_source.html|   2 +-
 .../api/latest/c++/in__memory_8hpp_source.html  |   2 +-
 ...mesos_2allocator_2allocator_8hpp_source.html |   2 +-
 .../include_2mesos_2attributes_8hpp_source.html |   2 +-
 ...sos_2authorizer_2authorizer_8hpp_source.html |   2 +-
 ...lude_2mesos_2state_2leveldb_8hpp_source.html |   2 +-
 .../include_2mesos_2state_2log_8hpp_source.html |   2 +-
 ...ude_2mesos_2state_2protobuf_8hpp_source.html |   2 +-
 ...nclude_2mesos_2state_2state_8hpp_source.html |   2 +-
 ...lude_2mesos_2state_2storage_8hpp_source.html |   2 +-
 ...de_2mesos_2state_2zookeeper_8hpp_source.html |   2 +-
 ...nclude_2mesos_2uri_2fetcher_8hpp_source.html |   2 +-
 ...lude_2mesos_2v1_2attributes_8hpp_source.html |   2 +-
 content/api/latest/c++/index.hhc|  13 +-
 content/api/latest/c++/index.hhk| 235 +++---
 .../api/latest/c++/jobobject_8hpp_source.html   |   2 +-
 content/api/latest/c++/json_8hpp_source.html|   2 +-
 content/api/latest/c++/jvm_8hpp_source.html |   2 +-
 .../latest/c++/lib__logrotate_8hpp_source.html  |   2 +-
 ...ibprocess_2include_2process_2gtest_8hpp.html |   4 +-
 ...ss_2include_2process_2gtest_8hpp_source.html | 301 +++
 ..._2include_2process_2process_8hpp_source.html |   2 +-
 ...nclude_2process_2ssl_2gtest_8hpp_source.html |   2 +-
 .../api/latest/c++/logrotate_8hpp_source.html   |   2 +-
 .../api/latest/c++/mock__csi__plugin_8hpp.html  |   2 +-
 .../latest/c++/module_2manager_8hpp_source.html |   2 +-
 .../api/latest/c++/namespacemembers_0x68.html   |   6 +-
 .../api/latest/c++/namespacemembers_0x6d.html   |  12 +-
 .../api/latest/c++/namespacemembers_0x6e.html   |   6 +-
 .../api/latest/c++/namespacemembers_0x72.html   |  19 +-
 .../api/latest/c++/namespacemembers_0x73.html   |  12 +-
 .../api/latest/c++/namespacemembers_0x77.html   |  29 +-
 .../latest/c++/namespacemembers_func_0x73.html  |   4 +-
 .../latest/c++/namespacemembers_vars_0x6e.html  |   6 +-
 .../latest/c++/namespacemembers_vars_0x77.html  |   6 +-
 content/api/latest/c++/namespaceos.html |  24 +-
 .../api/latest/c++/posix_2copyfile_8hpp.html|   3 +-
 .../latest/c++/posix_2copyfile_8hpp_source.html | 115 +--
 .../c++/posix_2dynamiclibrary_8hpp_source.html  |   2 +-
 .../api/latest/c++/posix_2fork_8hpp_source.html |   4 +-
 .../api/latest/c++/posix_2mac_8hpp_source.html  |   2 +-
 .../api/latest/c++/posix_2os_8hpp_source.html   |   6 +-
 content/api/latest/c++/posix_2shell_8hpp.html   |  10 +-
 .../latest/c++/posix_2shell_8hpp_source.html| 318 +++
 .../latest/c++/posix_2xattr_8hpp_source.html|   2 +-
 .../c++/queueing_2internal_8hpp_source.html |   2 +-
 .../api/latest/c++/resolver_8hpp_source.html|   2 +-
 ...der_2storage_2disk__profile_8hpp_source.html |   2 +-
 .../api/latest/c++/resources_8hpp_source.html   |   2 +-
 ...lave_2containerizer_2docker_8hpp_source.html |   2 +-
 ...2provisioner_2docker_2paths_8hpp_source.html |   2 +-
 

[08/11] mesos-site git commit: Updated the website built from mesos SHA: be8be3b.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/jobobject_8hpp_source.html
--
diff --git a/content/api/latest/c++/jobobject_8hpp_source.html 
b/content/api/latest/c++/jobobject_8hpp_source.html
index 8d0fab0..71cb241 100644
--- a/content/api/latest/c++/jobobject_8hpp_source.html
+++ b/content/api/latest/c++/jobobject_8hpp_source.html
@@ -218,7 +218,7 @@
 process::deferDeferred void() defer(const PID T  pid, 
void(T::*method)())Definition: 
defer.hpp:35
 process::internal::JobObjectManager::managevoid manage(const pid_t pid, const std::wstring name, 
const SharedHandle handle)Definition: 
jobobject.hpp:42
 process.hpp
-os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:41
+os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:43
 process::FutureDefinition: future.hpp:57
 
 

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/json_8hpp_source.html
--
diff --git a/content/api/latest/c++/json_8hpp_source.html 
b/content/api/latest/c++/json_8hpp_source.html
index ac4482b..246b184 100644
--- a/content/api/latest/c++/json_8hpp_source.html
+++ b/content/api/latest/c++/json_8hpp_source.html
@@ -1081,7 +1081,7 @@
 JSON::Number::typeenum JSON::Number::Type type
 JSON::Object::findResult T  find(const std::string path) const 
Definition: json.hpp:354
 JSON::internal::convertValue convert(const picojson::value value)Definition: json.hpp:851
-os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:41
+os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:43
 JSON::Boolean::BooleanBoolean(bool _value)Definition: 
json.hpp:206
 unreachable.hpp
 JSON::WriterProxyDefinition: jsonify.hpp:642

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/jvm_8hpp_source.html
--
diff --git a/content/api/latest/c++/jvm_8hpp_source.html 
b/content/api/latest/c++/jvm_8hpp_source.html
index 3595a25..696bf42 100644
--- a/content/api/latest/c++/jvm_8hpp_source.html
+++ b/content/api/latest/c++/jvm_8hpp_source.html
@@ -632,7 +632,7 @@
 Jvm::longClassconst Class longClassDefinition: jvm.hpp:404
 Jvm::Object::ObjectObject()Definition: 
jvm.hpp:247
 Jvm::getStaticFieldT getStaticField(const Field field)
-os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:41
+os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:43
 JNI::v_1_1Definition: jvm.hpp:42
 Jvm::ConstructorFinder::parameterConstructorFinder  parameter(const Class 
clazz)
 Jvm::Class::ClassClass(const Class that)

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/lib__logrotate_8hpp_source.html
--
diff --git a/content/api/latest/c++/lib__logrotate_8hpp_source.html 
b/content/api/latest/c++/lib__logrotate_8hpp_source.html
index f7cc9ac..b963806 100644
--- a/content/api/latest/c++/lib__logrotate_8hpp_source.html
+++ b/content/api/latest/c++/lib__logrotate_8hpp_source.html
@@ -295,7 +295,7 @@
 option.hpp
 Try::errorstatic Try error(const E e)Definition: try.hpp:42
 pagesize.hpp
-os::shellTry std::string  shell(const std::string fmt, 
const T ...t)Runs a shell command with optional 
arguments. Definition: shell.hpp:71
+os::shellTry std::string  shell(const std::string fmt, 
const T ...t)Runs a shell command with optional 
arguments. Definition: shell.hpp:73
 NoneDefinition: 
none.hpp:27
 Try::isErrorbool isError() const Definition: try.hpp:71
 mesos::internal::logger::LoggerFlags::LoggerFlagsLoggerFlags()Definition: 
lib_logrotate.hpp:50

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/libprocess_2include_2process_2gtest_8hpp.html
--
diff --git 
a/content/api/latest/c++/libprocess_2include_2process_2gtest_8hpp.html 
b/content/api/latest/c++/libprocess_2include_2process_2gtest_8hpp.html
index be4b55c..a754495 100644
--- a/content/api/latest/c++/libprocess_2include_2process_2gtest_8hpp.html
+++ b/content/api/latest/c++/libprocess_2include_2process_2gtest_8hpp.html
@@ -1103,7 +1103,7 @@ Variables
   expected, \
   actual,   \
   process::TEST_AWAIT_TIMEOUT)
-AWAIT_ASSERT_WTERMSIG_EQ_FOR#define AWAIT_ASSERT_WTERMSIG_EQ_FOR(expected, actual, 
duration)Definition: gtest.hpp:781
+AWAIT_ASSERT_WTERMSIG_EQ_FOR#define AWAIT_ASSERT_WTERMSIG_EQ_FOR(expected, actual, 
duration)Definition: gtest.hpp:783
 process::TEST_AWAIT_TIMEOUTDuration TEST_AWAIT_TIMEOUT
 
 
@@ -2128,7 +2128,7 @@ Variables
   expected, \
   actual,   \
   process::TEST_AWAIT_TIMEOUT)

[02/11] mesos-site git commit: Updated the website built from mesos SHA: be8be3b.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/windows_2shell_8hpp_source.html
--
diff --git a/content/api/latest/c++/windows_2shell_8hpp_source.html 
b/content/api/latest/c++/windows_2shell_8hpp_source.html
index 9b96906..d50fb53 100644
--- a/content/api/latest/c++/windows_2shell_8hpp_source.html
+++ b/content/api/latest/c++/windows_2shell_8hpp_source.html
@@ -78,419 +78,420 @@

24

25#include stout/error.hpp

26#include stout/foreach.hpp
-   
27#include stout/option.hpp
-   
28#include stout/os.hpp
-   
29#include stout/try.hpp
-   
30#include stout/windows.hpp
-   
31
-   
32#include stout/os/windows/fd.hpp
-   
33
-   
34#include stout/internal/windows/inherit.hpp
-   
35
-   
36namespace internal {
-   
37namespace windows {
-   
38
-   
39// Retrieves system environment in a 
`std::map`, ignoring
-   
40// the current processs environment 
variables.
-   
41inline Optionstd::mapstd::wstring, 
std::wstring get_system_env()
-   
42{
-   43 
 std::mapstd::wstring, std::wstring system_env;
-   44 
 wchar_t* env_entry = nullptr;
-   
45
-   46 
 // Get the system environment.
-   47 
 // The third parameter (bool) tells the function *not* 
to inherit
-   48 
 // variables from the current process.
-   49 
 if 
(!::CreateEnvironmentBlock((LPVOID*)env_entry, nullptr, FALSE)) {
-   50 
   return None();
-   51 
 }
-   
52
-   53 
 // Save the environment block in order to destroy it 
later.
-   54 
 wchar_t* env_block = env_entry;
-   
55
-   56 
 while (*env_entry != L\0) {
-   57 
   // Each environment block contains the environment 
variables as follows:
-   58 
   // Var1=Value1\0
-   59 
   // Var2=Value2\0
-   60 
   // Var3=Value3\0
-   61 
   // ...
-   62 
   // VarN=ValueN\0\0
-   63 
   // The name of an environment variable cannot include 
an equal sign (=).
-   
64
-   65 
   // Construct a string from the pointer up to the first 
\0,
-   66 
   // e.g. Var1=Value1\0, then split into 
name and value.
-   67 
   std::wstring entry(env_entry);
-   68 
   std::wstring::size_type separator = entry.find(L=);
-   69 
   std::wstring var_name(entry.substr(0, separator));
-   70 
   std::wstring varVal(entry.substr(separator + 1));
-   
71
-   72 
   // Mesos variables are upper case. Convert system 
variables to
-   73 
   // match the name provided by the scheduler in case of 
a collision.
-   74 
   // This is safe because Windows environment variables 
are case insensitive.
-   75 
   std::transform(
-   76 
   var_name.begin(), var_name.end(), var_name.begin(), ::towupper);
-   
77
-   78 
   // The system environment has priority.
-   79 
   system_env.insert_or_assign(var_name.data(), varVal.data());
-   
80
-   81 
   // Advance the pointer the length of the entry string 
plus the \0.
-   82 
   env_entry += entry.length() + 1;
-   83 
 }
-   
84
-   85 
 ::DestroyEnvironmentBlock(env_block);
-   
86
-   87 
 return system_env;
-   
88}
-   
89
+   
27#include stout/none.hpp
+   
28#include stout/option.hpp
+   
29#include stout/os.hpp
+   
30#include stout/try.hpp
+   
31#include stout/windows.hpp
+   
32
+   
33#include stout/os/windows/fd.hpp
+   
34
+   
35#include stout/internal/windows/inherit.hpp
+   
36
+   
37namespace internal {
+   
38namespace windows {
+   
39
+   
40// Retrieves system environment in a 
`std::map`, ignoring
+   
41// the current processs environment 
variables.
+   
42inline Optionstd::mapstd::wstring, 
std::wstring get_system_env()
+   
43{
+   44 
 std::mapstd::wstring, std::wstring system_env;
+   45 
 wchar_t* env_entry = nullptr;
+   
46
+   47 
 // Get the system environment.
+   48 
 // The third parameter (bool) tells the function *not* 
to inherit
+   49 
 // variables from the current process.
+   50 
 if 
(!::CreateEnvironmentBlock((LPVOID*)env_entry, nullptr, FALSE)) {
+   51 
   return None();
+   52 
 }
+   
53
+   54 
 // Save the environment block in order to destroy it 
later.
+   55 
 wchar_t* env_block = env_entry;
+   
56
+   57 
 while (*env_entry != L\0) {
+   58 
   // Each environment block contains the environment 
variables as follows:
+   59 
   // Var1=Value1\0
+   60 
   // Var2=Value2\0
+   61 
   // Var3=Value3\0
+   62 
   // ...
+   63 
   // VarN=ValueN\0\0
+   64 
   // The name of an environment variable cannot include 
an equal sign (=).
+   
65
+   66 
   // Construct a string from the pointer up to the first 
\0,
+   67 
   // e.g. Var1=Value1\0, then split into 
name and value.
+   68 
   std::wstring entry(env_entry);
+   69 
   std::wstring::size_type separator = entry.find(L=);
+   70 
   std::wstring var_name(entry.substr(0, separator));
+   71 
   std::wstring varVal(entry.substr(separator + 1));
+   
72
+   73 
   // Mesos variables are upper case. Convert system 
variables to
+   74 
   // match the name provided by the scheduler in case of 
a collision.
+   75 
   // This is safe because 

[06/11] mesos-site git commit: Updated the website built from mesos SHA: be8be3b.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/posix_2shell_8hpp_source.html
--
diff --git a/content/api/latest/c++/posix_2shell_8hpp_source.html 
b/content/api/latest/c++/posix_2shell_8hpp_source.html
index 1dcc8fa..83cf4d2 100644
--- a/content/api/latest/c++/posix_2shell_8hpp_source.html
+++ b/content/api/latest/c++/posix_2shell_8hpp_source.html
@@ -79,182 +79,188 @@

25

26#include stout/error.hpp

27#include stout/format.hpp
-   
28#include stout/try.hpp
-   
29
-   
30#include stout/os/raw/argv.hpp
+   
28#include stout/none.hpp
+   
29#include stout/option.hpp
+   
30#include stout/try.hpp

31
-   
32namespace os {
+   
32#include stout/os/raw/argv.hpp

33
-   34namespace Shell {
+   
34namespace os {

35
-   
36// Canonical constants used as 
platform-dependent args to `exec`
-   
37// calls. `name` is the command name, 
`arg0` is the first argument
-   
38// received by the callee, usually the 
command name and `arg1` is the
-   
39// second command argument received by the 
callee.
-   
40
-   
41constexpr const char* name = 
sh;
-   
42constexpr const char* arg0 = 
sh;
-   
43constexpr const char* arg1 = 
-c;
-   
44
-   
45} // namespace Shell {
+   36namespace Shell {
+   
37
+   
38// Canonical constants used as 
platform-dependent args to `exec`
+   
39// calls. `name` is the command name, 
`arg0` is the first argument
+   
40// received by the callee, usually the 
command name and `arg1` is the
+   
41// second command argument received by the 
callee.
+   
42
+   
43constexpr const char* name = 
sh;
+   
44constexpr const char* arg0 = 
sh;
+   
45constexpr const char* arg1 = 
-c;

46
-   
70template typename... T
-   
71Trystd::string shell(const std::string fmt, const T... t)
-   
72{
-   73 
 const Trystd::string command = strings::internal::format(fmt,
 t...);
-   74 
 if (command.isError()) {
-   75 
   return Error(command.error());
-   76 
 }
-   
77
-   78 
 FILE* file;
-   79 
 std::ostringstream stdout;
-   
80
-   81 
 if ((file = popen(command-c_str(), r)) == nullptr) {
-   82 
   return Error(Failed to 
run  + command.get() + );
-   83 
 }
-   
84
-   85 
 char line[1024];
-   86 
 // NOTE(vinod): Ideally the if and while loops should be 
interchanged. But
-   87 
 // we get a broken pipe error if we dont read the 
output and simply close.
-   88 
 while (fgets(line, sizeof(line), file) != nullptr) {
-   89 
   stdout  line;
-   90 
 }
-   
91
-   92 
 if (ferror(file) != 0) {
-   93 
   pclose(file); // Ignoring result since we already have 
an error.
-   94 
   return Error(Error 
reading output of  + command.get() + );
-   95 
 }
-   
96
-   97 
 int status;
-   98 
 if ((status = pclose(file)) == -1) {
-   99 
   return Error(Failed to 
get status of  + command.get() + );
-  100 
 }
-  
101
-  102 
 if (WIFSIGNALED(status))
 {
-  103 
   return Error(
-  104 
   Running  + 
command.get() +  was interrupted by signal  
+
-  105 
   strsignal(WTERMSIG(status))
 + );
-  106 
 } else if 
((WEXITSTATUS(status)
 != EXIT_SUCCESS)) {
-  107 
   LOG(ERROR)  Command 
  command.get()
-  108 
failed; this is 
the output:\n  stdout.str();
-  109 
   return Error(
-  110 
   Failed to execute  + 
command.get() + ; the command was either 
-  111 
   not found or exited with a non-zero 
exit status:  +
-  112 
   stringify(WEXITSTATUS(status)));
-  113 
 }
-  
114
-  115 
 return stdout.str();
-  
116}
-  
117
-  
118
-  
119// Executes a command by calling 
/bin/sh -c command, and returns
-  
120// after the command has been completed. 
Returns 0 if succeeds, and
-  
121// return -1 on error (e.g., 
fork/exec/waitpid failed). This function
-  
122// is async signal safe. We return int 
instead of returning a Try
-  
123// because Try involves new, 
which is not async signal safe.
-  
124//
-  
125// Note: Be cautious about shell 
injection
-  
126// 
(https://en.wikipedia.org/wiki/Code_injection#Shell_injection)
-  
127// when using this method and use proper 
validation and sanitization
-  
128// on the `command`. For this reason in 
general `os::spawn` is
-  
129// preferred if a shell is not 
required.
-  
130inline int system(const std::string command)
-  
131{
-  132 
 pid_t
 pid = ::fork();
-  
133
-  134 
 if (pid == -1) {
-  135 
   return -1;
-  136 
 } else if 
(pid == 0) {
-  137 
   // In child process.
-  138 
   ::execlp(
-  139 
   Shell::name,
 Shell::arg0,
 Shell::arg1,
 command.c_str(), (char*)nullptr);
-  140 
   ::exit(127);
-  141 
 } else {
-  142 
   // In parent process.
-  143 
   int status;
-  144 
   while (::waitpid(pid, 
status, 0) == -1) {
-  145 
 if (errno != EINTR) {
-  146 
   return -1;
-  147 
 }
-  148 
   }
-  
149
-  150 
   return status;
-  151 
 }
-  
152}
-  
153
-  
154// Executes a command by calling 
command arguments..., and
-  
155// returns after the 

[01/11] mesos-site git commit: Updated the website built from mesos SHA: be8be3b.

2018-03-06 Thread git-site-role
Repository: mesos-site
Updated Branches:
  refs/heads/asf-site 53f3d2403 -> 2306ff3ed


http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/windows_2xattr_8hpp_source.html
--
diff --git a/content/api/latest/c++/windows_2xattr_8hpp_source.html 
b/content/api/latest/c++/windows_2xattr_8hpp_source.html
index a248fd0..2366d54 100644
--- a/content/api/latest/c++/windows_2xattr_8hpp_source.html
+++ b/content/api/latest/c++/windows_2xattr_8hpp_source.html
@@ -95,7 +95,7 @@
 TryDefinition: 
check.hpp:33
 flags#define flagsDefinition: 
decoder.hpp:18
 os::getxattrTry std::string  getxattr(const std::string path, 
const std::string name)Definition: 
xattr.hpp:67
-os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:41
+os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:43
 
 
 

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/blog/feed.xml
--
diff --git a/content/blog/feed.xml b/content/blog/feed.xml
index c6d3b51..dc1618b 100644
--- a/content/blog/feed.xml
+++ b/content/blog/feed.xml
@@ -295,7 +295,7 @@ To learn more about CSI work in Mesos, you can dig into the 
design document 
 /ul
 
 
-pIf you are a user and would like to suggest some areas for 
performance improvement, please let us know by emailing a 
href=#x6d;#97;#105;#108;#116;#x6f;#x3a;#100;#x65;#118;#64;#x61;#x70;#x61;#99;#104;#101;#46;#109;#x65;#115;#x6f;#x73;#x2e;#x6f;#x72;#103;#x64;#101;#118;#64;#97;#x70;#97;#99;#x68;#x65;#x2e;#109;#101;#x73;#111;#x73;#46;#x6f;#x72;#103;/a./p
+pIf you are a user and would like to suggest some areas for 
performance improvement, please let us know by emailing a 
href=#109;#97;#105;#108;#116;#111;#58;#100;#101;#x76;#64;#97;#112;#x61;#99;#x68;#x65;#x2e;#x6d;#101;#x73;#111;#115;#46;#x6f;#x72;#103;#x64;#101;#118;#x40;#97;#112;#x61;#99;#104;#x65;#46;#109;#x65;#115;#111;#x73;#46;#x6f;#x72;#x67;/a./p
 

   

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/blog/performance-working-group-progress-report/index.html
--
diff --git a/content/blog/performance-working-group-progress-report/index.html 
b/content/blog/performance-working-group-progress-report/index.html
index d8a59ae..967bbea 100644
--- a/content/blog/performance-working-group-progress-report/index.html
+++ b/content/blog/performance-working-group-progress-report/index.html
@@ -248,7 +248,7 @@
 
 
 
-If you are a user and would like to suggest some areas for performance 
improvement, please let us know by emailing .
+If you are a user and would like to suggest some areas for performance 
improvement, please let us know by emailing .
 
   
 



[04/11] mesos-site git commit: Updated the website built from mesos SHA: be8be3b.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/stout_2include_2stout_2gtest_8hpp_source.html
--
diff --git 
a/content/api/latest/c++/stout_2include_2stout_2gtest_8hpp_source.html 
b/content/api/latest/c++/stout_2include_2stout_2gtest_8hpp_source.html
index 475d5d4..244344a 100644
--- a/content/api/latest/c++/stout_2include_2stout_2gtest_8hpp_source.html
+++ b/content/api/latest/c++/stout_2include_2stout_2gtest_8hpp_source.html
@@ -303,194 +303,199 @@
   
249{
   250 
 if (WIFEXITED(actual))
 {
   251 
   return ::testing::AssertionSuccess();
-  252 
 } else if 
(WIFSIGNALED(actual))
 {
-  253 
   return ::testing::AssertionFailure()
-  254 
  Expecting 
WIFEXITED(  actualExpr  ) but 
-  255 
   WIFSIGNALED( 
 actualExpr  ) is true and 

-  256 
  WTERMSIG(  
actualExpr  ) is  
 strsignal(WTERMSIG(actual));
-  257 
 } else if 
(WIFSTOPPED(actual))
 {
-  258 
   return ::testing::AssertionFailure()
-  259 
  Expecting 
WIFEXITED(  actualExpr  ) but
-  260 
   WIFSTOPPED( 
 actualExpr  ) is true and 

-  261 
  WSTOPSIG(  
actualExpr  ) is  
 strsignal(WSTOPSIG(actual));
-  262 
 }
-  
263
-  264 
 return ::testing::AssertionFailure()
-  265 
Expecting WIFEXITED( 
 actualExpr  ) but 
got
-  266 
 unknown value:  
 ::testing::PrintToString(actual);
-  
267}
-  
268
-  
269
-
  270#define 
ASSERT_EXITED(expected, actual) \
-  
271  ASSERT_PRED_FORMAT2(AssertExited, 
expected, actual)
-  
272
-  
273
-
  274#define 
EXPECT_EXITED(expected, actual) \
-  
275  EXPECT_PRED_FORMAT2(AssertExited, 
expected, actual)
-  
276
-  
277
-
  278inline ::testing::AssertionResult AssertExitStatusEq(
-  279 
   const char* 
expectedExpr,
-  280 
   const char* 
actualExpr,
-  281 
   const int 
expected,
-  282 
   const int 
actual)
-  
283{
-  284 
 const ::testing::AssertionResult result = AssertExited(actualExpr,
 actual);
-  
285
-  286 
 if (result) {
-  287 
   if (WEXITSTATUS(actual)
 == expected) {
-  288 
 return ::testing::AssertionSuccess();
-  289 
   } else {
-  290 
 return ::testing::AssertionFailure()
-  291 
Value of: 
WEXITSTATUS(  actualExpr  )\n
-  292 
  Actual:  
 ::testing::PrintToString(WEXITSTATUS(actual))
  \n
-  293 
Expected:  
 expectedExpr  \n
-  294 
Which is:  
 ::testing::PrintToString(expected);
-  295 
   }
-  296 
 }
-  
297
-  298 
 return result;
-  
299}
-  
300
-  
301
-
  302#define 
ASSERT_WEXITSTATUS_EQ(expected, actual) \
-  
303  
ASSERT_PRED_FORMAT2(AssertExitStatusEq, expected, actual)
-  
304
-  
305
-
  306#define 
EXPECT_WEXITSTATUS_EQ(expected, actual) \
-  
307  
EXPECT_PRED_FORMAT2(AssertExitStatusEq, expected, actual)
-  
308
-  
309
-  
310
-
  311inline ::testing::AssertionResult AssertExitStatusNe(
-  312 
   const char* 
expectedExpr,
-  313 
   const char* 
actualExpr,
-  314 
   const int 
expected,
-  315 
   const int 
actual)
-  
316{
-  317 
 const ::testing::AssertionResult result = AssertExited(actualExpr,
 actual);
-  
318
-  319 
 if (result) {
-  320 
   if (WEXITSTATUS(actual)
 != expected) {
-  321 
 return ::testing::AssertionSuccess();
-  322 
   } else {
-  323 
 return ::testing::AssertionFailure()
-  324 
Value of: 
WEXITSTATUS(  actualExpr  )\n
-  325 
  Actual:  
 ::testing::PrintToString(WEXITSTATUS(actual))
  \n
-  326 
Expected:  
 expectedExpr  \n
-  327 
Which is:  
 ::testing::PrintToString(expected);
-  328 
   }
-  329 
 }
-  
330
-  331 
 return result;
-  
332}
-  
333
-  
334
-
  335#define 
ASSERT_WEXITSTATUS_NE(expected, actual) \
-  
336  
ASSERT_PRED_FORMAT2(AssertExitStatusNe, expected, actual)
-  
337
-  
338
-
  339#define 
EXPECT_WEXITSTATUS_NE(expected, actual) \
-  
340  
EXPECT_PRED_FORMAT2(AssertExitStatusNe, expected, actual)
-  
341
-  
342
-
  343inline ::testing::AssertionResult AssertSignaled(
-  344 
   const char* 
actualExpr,
-  345 
   const int 
actual)
-  
346{
-  347 
 if (WIFEXITED(actual))
 {
-  348 
   return ::testing::AssertionFailure()
-  349 
  Expecting 
WIFSIGNALED(  actualExpr  ) but 
-  350 
   WIFEXITED( 
 actualExpr  ) is true and 

-  351 
  WEXITSTATUS( 
 actualExpr  ) is 
  WEXITSTATUS(actual);
-  352 
 } else if 
(WIFSIGNALED(actual))
 {
-  353 
   return ::testing::AssertionSuccess();
-  354 
 } else if 
(WIFSTOPPED(actual))
 {
-  355 
   return ::testing::AssertionFailure()
-  356 
  Expecting 
WIFSIGNALED(  actualExpr  ) but
-  357 
   WIFSTOPPED( 
 actualExpr  ) is true and 

-  358 
  WSTOPSIG(  
actualExpr  ) is  
 strsignal(WSTOPSIG(actual));
-  359 
 }
-  
360
-  361 
 return ::testing::AssertionFailure()
-  362 
Expecting 
WIFSIGNALED(  actualExpr  ) but got
-  363 
 unknown value:  
 ::testing::PrintToString(actual);
-  
364}
-  
365
-  
366
-
  

[03/11] mesos-site git commit: Updated the website built from mesos SHA: be8be3b.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/subprocess__windows_8hpp_source.html
--
diff --git a/content/api/latest/c++/subprocess__windows_8hpp_source.html 
b/content/api/latest/c++/subprocess__windows_8hpp_source.html
index e83a691..a120865 100644
--- a/content/api/latest/c++/subprocess__windows_8hpp_source.html
+++ b/content/api/latest/c++/subprocess__windows_8hpp_source.html
@@ -170,7 +170,7 @@
 SharedHandle::get_handleHANDLE get_handle() const Definition: windows.hpp:96
 os::WindowsFDDefinition: fd.hpp:47
 TryDefinition: 
check.hpp:33
-internal::windows::create_processTry ProcessData  create_process(const std::string 
command, const std::vector std::string  argv, const 
Option std::map std::string, std::string  environment, 
const bool create_suspended=false, const Option std::array 
os::WindowsFD, 3  pipes=None())Definition: shell.hpp:238
+internal::windows::create_processTry ProcessData  create_process(const std::string 
command, const std::vector std::string  argv, const 
Option std::map std::string, std::string  environment, 
const bool create_suspended=false, const Option std::array 
os::WindowsFD, 3  pipes=None())Definition: shell.hpp:239
 subprocess.hpp
 os.hpp
 WindowsErrorDefinition: error.hpp:106
@@ -184,8 +184,8 @@
 pid_tDWORD pid_tDefinition: 
windows.hpp:187
 process::Subprocess::IO::OutputFileDescriptors::writeint_fd writeDefinition: 
subprocess.hpp:91
 os::closeTry Nothing  close(int fd)Definition: close.hpp:24
-internal::windows::ProcessData::process_handleSharedHandle process_handleDefinition: shell.hpp:212
-internal::windows::ProcessData::thread_handleSharedHandle thread_handleDefinition: shell.hpp:213
+internal::windows::ProcessData::process_handleSharedHandle process_handleDefinition: shell.hpp:213
+internal::windows::ProcessData::thread_handleSharedHandle thread_handleDefinition: shell.hpp:214
 process::Subprocess::IO::InputFileDescriptorsFor input file descriptors a child reads from the read file 
descriptor and a parent may write to the ...Definition: subprocess.hpp:73
 option.hpp
 Try::errorstatic Try error(const E e)Definition: try.hpp:42
@@ -196,7 +196,7 @@
 Try::isErrorbool isError() const Definition: try.hpp:71
 try.hpp
 hashset.hpp
-internal::windows::ProcessData::pidpid_t pidDefinition: 
shell.hpp:214
+internal::windows::ProcessData::pidpid_t pidDefinition: 
shell.hpp:215
 shell.hpp
 process::Subprocess::ParentHookA hook can be passed to a subprocess call. Definition: subprocess.hpp:151
 ns::stringifystd::string stringify(int flags)

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/sysctl_8hpp_source.html
--
diff --git a/content/api/latest/c++/sysctl_8hpp_source.html 
b/content/api/latest/c++/sysctl_8hpp_source.html
index 3f9b69e..0e12186 100644
--- a/content/api/latest/c++/sysctl_8hpp_source.html
+++ b/content/api/latest/c++/sysctl_8hpp_source.html
@@ -376,7 +376,7 @@
 try.hpp
 os::sysctlDefinition: sysctl.hpp:59
 os::tempstd::string temp()Definition: 
temp.hpp:27
-os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:41
+os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:43
 strings.hpp
 os::sysctl::timeTry timeval  time() const Definition: sysctl.hpp:218
 

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/systemd_8hpp_source.html
--
diff --git a/content/api/latest/c++/systemd_8hpp_source.html 
b/content/api/latest/c++/systemd_8hpp_source.html
index 36627fe..52c9849 100644
--- a/content/api/latest/c++/systemd_8hpp_source.html
+++ b/content/api/latest/c++/systemd_8hpp_source.html
@@ -163,7 +163,7 @@
 systemd::FlagsFlags to initialize systemd state. Definition: systemd.hpp:59
 systemd::existsbool exists()Check if we are on a 
systemd environment by: (1) Testing whether /sbin/init links to 
systemd...
 systemd::flagsconst Flags  flags()
-os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:41
+os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:43
 systemd::slices::existsbool exists(const Path path)Returns whether a systemd slice configuration file exists at the 
given path. 
 
 

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/v1_2resources_8hpp_source.html
--
diff --git a/content/api/latest/c++/v1_2resources_8hpp_source.html 
b/content/api/latest/c++/v1_2resources_8hpp_source.html
index ff37550..c3aa15f 100644
--- a/content/api/latest/c++/v1_2resources_8hpp_source.html
+++ b/content/api/latest/c++/v1_2resources_8hpp_source.html
@@ -769,7 +769,7 @@
 mesos::v1::Resources::shrinkstatic bool shrink(Resource *resource, const Value::Scalar 
target)
 mesos::v1::operatorstd::ostream  operator(std::ostream 

[07/11] mesos-site git commit: Updated the website built from mesos SHA: be8be3b.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/module_2manager_8hpp_source.html
--
diff --git a/content/api/latest/c++/module_2manager_8hpp_source.html 
b/content/api/latest/c++/module_2manager_8hpp_source.html
index be0a451..5afbff7 100644
--- a/content/api/latest/c++/module_2manager_8hpp_source.html
+++ b/content/api/latest/c++/module_2manager_8hpp_source.html
@@ -273,7 +273,7 @@
 ns::stringifystd::string stringify(int flags)
 mesos::modules::ModuleManager::findstatic std::vector std::string  find()Definition: manager.hpp:130
 dynamiclibrary.hpp
-os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:41
+os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:43
 hashmap.hpp
 mesos::modules::ModuleDefinition: module.hpp:97
 messages.hpp

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/namespacemembers_0x68.html
--
diff --git a/content/api/latest/c++/namespacemembers_0x68.html 
b/content/api/latest/c++/namespacemembers_0x68.html
index 873cdcb..d6fe87e 100644
--- a/content/api/latest/c++/namespacemembers_0x68.html
+++ b/content/api/latest/c++/namespacemembers_0x68.html
@@ -121,12 +121,12 @@
 hstrerror()
 : os
 
-HTTP
-: process::http
-
 http()
 : mesos::uri
 
+HTTP
+: process::http
+
 HTTP_MARKER_FILE
 : mesos::internal::slave::paths
 

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/namespacemembers_0x6d.html
--
diff --git a/content/api/latest/c++/namespacemembers_0x6d.html 
b/content/api/latest/c++/namespacemembers_0x6d.html
index a429655..c610977 100644
--- a/content/api/latest/c++/namespacemembers_0x6d.html
+++ b/content/api/latest/c++/namespacemembers_0x6d.html
@@ -328,12 +328,12 @@
 MESSAGE_CONTENT_TYPE
 : mesos
 
-Metrics()
-: mesos::internal::tests
-
 metrics
 : process::metrics::internal
 
+Metrics()
+: mesos::internal::tests
+
 MIN_AGENT_REREGISTER_TIMEOUT
 : mesos::internal::master
 
@@ -361,12 +361,12 @@
 mkdtemp()
 : os
 
-mknod()
-: os
-
 MKNOD
 : mesos::internal::capabilities
 
+mknod()
+: os
+
 mktemp()
 : os
 

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/namespacemembers_0x6e.html
--
diff --git a/content/api/latest/c++/namespacemembers_0x6e.html 
b/content/api/latest/c++/namespacemembers_0x6e.html
index 61cf44c..ade2523 100644
--- a/content/api/latest/c++/namespacemembers_0x6e.html
+++ b/content/api/latest/c++/namespacemembers_0x6e.html
@@ -87,13 +87,13 @@
 Here is a list of all namespace members with links to 
the namespace documentation for each member:
 
 - n -
+NAME
+: mesos::internal::logger::rotate
+
 name
 : os::Shell
 , routing::link
 
-NAME
-: mesos::internal::logger::rotate
-
 name_job()
 : os
 

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/namespacemembers_0x72.html
--
diff --git a/content/api/latest/c++/namespacemembers_0x72.html 
b/content/api/latest/c++/namespacemembers_0x72.html
index ef7a8c5..e13e79c 100644
--- a/content/api/latest/c++/namespacemembers_0x72.html
+++ b/content/api/latest/c++/namespacemembers_0x72.html
@@ -103,19 +103,24 @@
 : os::stat
 
 read()
-: mesos::internal::slave::state
+: mesos::internal::credentials
+, protobuf
+, cgroups
+, mesos::internal::slave::state
+, process::io
 
 READ
 : process::io
-, cgroups::blkio
 
 read()
-: process::io
+: process::io
 , os
-, mesos::internal::credentials
-, os
-, cgroups
-, protobuf
+
+READ
+: cgroups::blkio
+
+read()
+: os
 
 read Resources ()
 : mesos::internal::slave::state

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/namespacemembers_0x73.html
--
diff --git a/content/api/latest/c++/namespacemembers_0x73.html 
b/content/api/latest/c++/namespacemembers_0x73.html
index 13be1a2..c23f691 100644
--- a/content/api/latest/c++/namespacemembers_0x73.html
+++ b/content/api/latest/c++/namespacemembers_0x73.html
@@ -158,12 +158,12 @@
 SETFCAP
 : mesos::internal::capabilities
 
-SETGID
-: mesos::internal::capabilities
-
 setgid()
 : os
 
+SETGID
+: mesos::internal::capabilities
+
 setgroups()
 : os
 
@@ -262,9 +262,9 @@
 : elf
 
 spawn()
-: os
+: os
 , process
-, os
+, os
 , process
 
 split()
@@ -403,7 +403,7 @@
 : os
 
 system()
-: os
+: os
 
 systemGetDriverVersion()
 : nvml

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/namespacemembers_0x77.html
--
diff --git a/content/api/latest/c++/namespacemembers_0x77.html 

[05/11] mesos-site git commit: Updated the website built from mesos SHA: be8be3b.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/src_2master_2master_8hpp_source.html
--
diff --git a/content/api/latest/c++/src_2master_2master_8hpp_source.html 
b/content/api/latest/c++/src_2master_2master_8hpp_source.html
index 075838c..9a9eb50 100644
--- a/content/api/latest/c++/src_2master_2master_8hpp_source.html
+++ b/content/api/latest/c++/src_2master_2master_8hpp_source.html
@@ -3324,7 +3324,7 @@
 mesos::internal::master::Master::submitSchedulervoid submitScheduler(const std::string name)
 mesos::internal::master::Master::removeOperationvoid removeOperation(Operation *operation)
 mesos::internal::master::Master::deactivatevoid deactivate(Framework *framework, bool rescind)
-os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:41
+os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:43
 mesos::internal::master::Slave::usedResourceshashmap FrameworkID, Resources  usedResourcesDefinition: master.hpp:259
 mesos::internal::master::Master::throttledvoid throttled(process::MessageEvent event, const 
Option std::string  principal)
 files.hpp

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/src_2slave_2containerizer_2mesos_2isolators_2docker_2volume_2isolator_8hpp_source.html
--
diff --git 
a/content/api/latest/c++/src_2slave_2containerizer_2mesos_2isolators_2docker_2volume_2isolator_8hpp_source.html
 
b/content/api/latest/c++/src_2slave_2containerizer_2mesos_2isolators_2docker_2volume_2isolator_8hpp_source.html
index f266f95..5249f24 100644
--- 
a/content/api/latest/c++/src_2slave_2containerizer_2mesos_2isolators_2docker_2volume_2isolator_8hpp_source.html
+++ 
b/content/api/latest/c++/src_2slave_2containerizer_2mesos_2isolators_2docker_2volume_2isolator_8hpp_source.html
@@ -204,7 +204,7 @@
 owned.hpp
 mesos::internal::slave::DockerVolumeIsolatorProcess::cleanupvirtual process::Future Nothing  cleanup(const 
ContainerID containerId)
 process::Owned 
docker::volume::DriverClient 
-os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:41
+os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:43
 hashmap.hpp
 process::Future Nothing 

 

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/src_2slave_2containerizer_2mesos_2provisioner_2appc_2cache_8hpp_source.html
--
diff --git 
a/content/api/latest/c++/src_2slave_2containerizer_2mesos_2provisioner_2appc_2cache_8hpp_source.html
 
b/content/api/latest/c++/src_2slave_2containerizer_2mesos_2provisioner_2appc_2cache_8hpp_source.html
index 3625d5e..801f168 100644
--- 
a/content/api/latest/c++/src_2slave_2containerizer_2mesos_2provisioner_2appc_2cache_8hpp_source.html
+++ 
b/content/api/latest/c++/src_2slave_2containerizer_2mesos_2provisioner_2appc_2cache_8hpp_source.html
@@ -148,7 +148,7 @@
 mesos::internal::slave::appc::CacheEncapsulates Appc image cache. Definition: cache.hpp:42
 mesos::internal::slave::appc::Cache::findOption std::string  find(const Image::Appc image) 
const Finds image id of an image if it is present in 
the cache/store. 
 owned.hpp
-os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:41
+os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:43
 hashmap.hpp
 
 

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/src_2tests_2allocator_8hpp_source.html
--
diff --git a/content/api/latest/c++/src_2tests_2allocator_8hpp_source.html 
b/content/api/latest/c++/src_2tests_2allocator_8hpp_source.html
index 3aa7a65..d2135b3 100644
--- a/content/api/latest/c++/src_2tests_2allocator_8hpp_source.html
+++ b/content/api/latest/c++/src_2tests_2allocator_8hpp_source.html
@@ -555,7 +555,7 @@
 mesos::allocator::Allocator::recoverResourcesvirtual void recoverResources(const FrameworkID 
frameworkId, const SlaveID slaveId, const Resources resources, 
const Option Filters  filters)=0Recovers 
resources. 
 mesos::allocator::Allocator::removeQuotavirtual void removeQuota(const std::string 
role)=0Informs the allocator to remove quota for 
the given role. 
 mesos::allocator::Allocator::addResourceProvidervirtual void addResourceProvider(const SlaveID slave, 
const Resources total, const hashmap FrameworkID, Resources  
used)=0Add resources from a local resource 
provider to an agent. 
-os::Shell::arg1constexpr const char * arg1Definition: shell.hpp:43
+os::Shell::arg1constexpr const char * arg1Definition: shell.hpp:45
 OptionDefinition: 
option.hpp:28
 Try::getT  get()Definition: 
try.hpp:73
 TryDefinition: 
check.hpp:33
@@ -570,7 +570,7 @@
 mesos::allocator::Allocator::getInverseOfferStatusesvirtual process::Future hashmap SlaveID, hashmap 
FrameworkID, mesos::allocator::InverseOfferStatus

[09/11] mesos-site git commit: Updated the website built from mesos SHA: be8be3b.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/index.hhk
--
diff --git a/content/api/latest/c++/index.hhk b/content/api/latest/c++/index.hhk
index 59b7c58..2c344f0 100644
--- a/content/api/latest/c++/index.hhk
+++ b/content/api/latest/c++/index.hhk
@@ -188,15 +188,10 @@
 
 
 
-
 
 
 
-
 
-
-
-
 
   
   
@@ -1528,10 +1523,10 @@
 
   
   
-  
   
   
   
+
 
 
 
@@ -15126,13 +15121,10 @@
   
   
   
-  
-
-
-  
   
-  
+  
   
+
 
 
 
@@ -15595,14 +15587,20 @@
 
   
   
-  
-  
   
+
 
+  
+  
+  
+
+
+  
+  
+  
 
+
   
-  
-  
   
   
   
@@ -15958,13 +15956,10 @@
   
 
 
-  
-  
-  
-  
 
-
   
+  
+  
   
   
   
@@ -16013,8 +16008,8 @@
   
   
   
-  
   
+  
   
   
   
@@ -17119,12 +17114,12 @@
 
 
 
-
+
 
 
 
 
-
+
 
 
 
@@ -17433,10 +17428,10 @@
 
 
   
-  
   
+  
+  
   
-
 
 
   
@@ -17765,8 +17760,8 @@
 
 
 
-
-
+
+
   
   
   
@@ -17833,10 +17828,10 @@
 
   
   
-  
   
-  
+  
   
+  
   
   
   
@@ -18509,13 +18504,13 @@
   
   
   
-
 
+
 
 
 
-
 
+
 
 
 
@@ -18763,8 +18758,8 @@
 
 
 
-
 
+
   
   
   
@@ -19412,8 +19407,8 @@
   
   
   
-
 
+
 
 
   
@@ -19454,15 +19449,15 @@
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
@@ -19503,8 +19498,8 @@
   
   
   
-
 
+
 
 
   
@@ -19524,15 +19519,15 @@
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
@@ -19559,15 +19554,15 @@
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
@@ -19601,22 +19596,22 @@
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
@@ -19650,29 +19645,29 @@
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
@@ -19819,8 +19814,8 @@
 
 
   
-  
   
+  
   
   
   
@@ -20191,10 +20186,10 @@
 
 
   
-  
   
+  
+  
   
-
 
 
 
@@ -21086,8 +21081,11 @@
 
   
   
+  
+
+
+  
   
-  
   
   
 
@@ -21283,8 +21281,8 @@
   
   
 
-
 
+
 
 
 
@@ -21620,138 +21618,120 @@
   
   
   
-  
-
-
-  
   
+  
+  
   
-
 
+
   
   
+  
+  
   
-  
-
-
-  
   
   
   
-
 
+
   
   
   
   
   
-
 
+
   
   
   
   
-  
-  
-  
-  
   
+
 
-
   
   
   
+
 
-
   
   
   
   
   
+
 
-
   
   
   
+
 
-
   
   
+  
+  
+  
+  
   
-
 
+
   
   
-  
-
-
-  
   
   
   
   
   
-  
-
-
-  
   
   
   
-  
-
-
-  
   
   
   
+  
+  
+
+
+  
+  
   
-
 
+
   
   
   
-
 
+
   
   
-  
-  
   
 
 
   
   
+  
+  
   
-
 
+
   
   
-  
-  
   
 
 
   
   
+  
+  
   
-
 
+
   
   
-  
-
-
-  
   
   
   
   
   
-  
-
-
-  
   
   
 
@@ -21762,21 +21742,12 @@
   
   
   
-  
-
-
-  
   
-  
-
-
-  
   
-  
-
-
-  
   
+  
+  
+  
   
   
 
@@ -22162,8 +22133,8 @@
   
   
   
-  
   
+  
   
   
   
@@ -22506,10 +22477,10 @@
   
 
 
-
-
+
+
 
-
+
   
   
   
@@ -23938,11 +23909,11 @@
   
   
 
-
-
+
+
   
   
-  
+  
   
   
   
@@ -24540,9 +24511,9 @@
   
 
 
-
   
   
+  
   
   
   
@@ -24604,11 +24575,11 @@
   
   
   
-
 
+
   
-  
   
+  
   
   
   
@@ -25353,7 +25324,6 @@
 
   
   
-  
   
   
   
@@ -25405,7 +25375,6 @@
   
   
   
-  
   
   
 
@@ -25513,9 +25482,9 @@
 
 
 
-
+
 
-
+
   
   
   
@@ -25596,10 +25565,10 @@
 
 
   
-  
   
+  
+  
   
-
 
 
   
@@ -25615,10 +25584,13 @@
 
 
 
+
   
   
-  
-  
+  
+
+
+  
   
   
 
@@ -25658,11 +25630,8 @@
 
 


[10/11] mesos-site git commit: Updated the website built from mesos SHA: be8be3b.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/include_2mesos_2allocator_2allocator_8hpp_source.html
--
diff --git 
a/content/api/latest/c++/include_2mesos_2allocator_2allocator_8hpp_source.html 
b/content/api/latest/c++/include_2mesos_2allocator_2allocator_8hpp_source.html
index 9f9e1b5..24b0d33 100644
--- 
a/content/api/latest/c++/include_2mesos_2allocator_2allocator_8hpp_source.html
+++ 
b/content/api/latest/c++/include_2mesos_2allocator_2allocator_8hpp_source.html
@@ -283,7 +283,7 @@
 mesos::allocator::Allocator::recovervirtual void recover(const int expectedAgentCount, const 
hashmap std::string, Quota  quotas)=0Informs the allocator of the recovered state from the master. 

 mesos::allocator::Allocator::suppressOffersvirtual void suppressOffers(const FrameworkID frameworkId, 
const std::set std::string  roles)=0Suppresses offers. 
 mesos::allocator::Allocator::updateAvailablevirtual process::Future Nothing  updateAvailable(const 
SlaveID slaveId, const std::vector Offer::Operation  
operations)=0Updates available resources on an 
agent based on a sequence of offer operations. 
-os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:41
+os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:43
 mesos::allocator::Allocator::updateInverseOffervirtual void updateInverseOffer(const SlaveID slaveId, 
const FrameworkID frameworkId, const Option UnavailableResources  
unavailableResources, const Option InverseOfferStatus  
status, const Option Filters  filters=None())=0Updates inverse offer. 
 hashmap.hpp
 mesos::allocator::Allocator::updateSlavevirtual void updateSlave(const SlaveID slave, const 
SlaveInfo slaveInfo, const Option Resources  total=None(), 
const Option std::vector SlaveInfo::Capability  
capabilities=None())=0Updates an agent. 


http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/include_2mesos_2attributes_8hpp_source.html
--
diff --git a/content/api/latest/c++/include_2mesos_2attributes_8hpp_source.html 
b/content/api/latest/c++/include_2mesos_2attributes_8hpp_source.html
index 4e9345b..4947f09 100644
--- a/content/api/latest/c++/include_2mesos_2attributes_8hpp_source.html
+++ b/content/api/latest/c++/include_2mesos_2attributes_8hpp_source.html
@@ -196,7 +196,7 @@
 mesos::Attributes::enditerator end()Definition: 
attributes.hpp:107
 mesos::Attributes::operator=Attributes  operator=(const Attributes 
that)Definition: 
attributes.hpp:49
 mesos::Attributes::AttributesAttributes(const Attributes that)Definition: attributes.hpp:44
-os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:41
+os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:43
 mesos::Attributes::AttributesAttributes()Definition: 
attributes.hpp:35
 mesos::AttributesDefinition: attributes.hpp:32
 

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/include_2mesos_2authorizer_2authorizer_8hpp_source.html
--
diff --git 
a/content/api/latest/c++/include_2mesos_2authorizer_2authorizer_8hpp_source.html
 
b/content/api/latest/c++/include_2mesos_2authorizer_2authorizer_8hpp_source.html
index de10991..79479a0 100644
--- 
a/content/api/latest/c++/include_2mesos_2authorizer_2authorizer_8hpp_source.html
+++ 
b/content/api/latest/c++/include_2mesos_2authorizer_2authorizer_8hpp_source.html
@@ -330,7 +330,7 @@
 mesos::ObjectApprover::Object::ObjectObject(const TaskInfo _task_info, const FrameworkInfo 
_framework_info)Definition: 
authorizer.hpp:127
 mesos::ObjectApprover::Object::container_idconst ContainerID * container_idDefinition: authorizer.hpp:212
 mesos::ObjectApprover::Object::weight_infoconst WeightInfo * weight_infoDefinition: authorizer.hpp:209
-os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:41
+os::Shell::nameconstexpr const char * nameDefinition: shell.hpp:43
 mesos::Authorizer::AuthorizerAuthorizer()Definition: 
authorizer.hpp:306
 mesos::ObjectApprover::Object::executor_infoconst ExecutorInfo * executor_infoDefinition: authorizer.hpp:207
 process::Future bool 

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/2306ff3e/content/api/latest/c++/include_2mesos_2state_2leveldb_8hpp_source.html
--
diff --git 
a/content/api/latest/c++/include_2mesos_2state_2leveldb_8hpp_source.html 
b/content/api/latest/c++/include_2mesos_2state_2leveldb_8hpp_source.html
index 9a87c95..90b48dc 100644
--- a/content/api/latest/c++/include_2mesos_2state_2leveldb_8hpp_source.html
+++ b/content/api/latest/c++/include_2mesos_2state_2leveldb_8hpp_source.html
@@ -125,7 +125,7 @@
 mesos::state::LevelDBStorage::namesvirtual process::Future std::set std::string   
names()
 uuid.hpp
 mesos::state::LevelDBStorageDefinition: 

[3/3] mesos-site git commit: Updated the website built from mesos SHA: 348ec1a.

2018-03-06 Thread git-site-role
Updated the website built from mesos SHA: 348ec1a.


Project: http://git-wip-us.apache.org/repos/asf/mesos-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos-site/commit/dfbf7828
Tree: http://git-wip-us.apache.org/repos/asf/mesos-site/tree/dfbf7828
Diff: http://git-wip-us.apache.org/repos/asf/mesos-site/diff/dfbf7828

Branch: refs/heads/asf-site
Commit: dfbf782867116c18648e5c8f2f90e821b5bc2642
Parents: 2306ff3
Author: jenkins 
Authored: Wed Mar 7 02:08:28 2018 +
Committer: jenkins 
Committed: Wed Mar 7 02:08:28 2018 +

--
 content/api/latest/c++/Nodes.xml|5 +
 content/api/latest/c++/Tokens.xml   |   22 +
 content/api/latest/c++/docker__common_8hpp.html |3 +
 .../latest/c++/docker__common_8hpp_source.html  |  338 +-
 content/api/latest/c++/globals_0x75.html|6 +-
 content/api/latest/c++/index.hhc|1 +
 content/api/latest/c++/index.hhk|  156 +-
 .../api/latest/c++/namespacemembers_0x61.html   |   16 +-
 .../api/latest/c++/namespacemembers_0x67.html   |6 +-
 .../api/latest/c++/namespacemembers_0x6b.html   |6 +-
 .../api/latest/c++/namespacemembers_0x6d.html   |6 +-
 .../api/latest/c++/namespacemembers_0x72.html   |   19 +-
 .../api/latest/c++/namespacemembers_0x73.html   |   11 +-
 .../api/latest/c++/namespacemembers_0x74.html   |   12 +-
 .../api/latest/c++/namespacemembers_0x75.html   |6 +-
 .../latest/c++/namespacemembers_func_0x61.html  |   15 +-
 .../latest/c++/namespacemembers_func_0x75.html  |6 +-
 .../namespacemesos_1_1internal_1_1tests.html|   26 +
 content/blog/feed.xml   |2 +-
 .../index.html  |2 +-
 content/sitemap.xml | 9090 +-
 21 files changed, 4929 insertions(+), 4825 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/mesos-site/blob/dfbf7828/content/api/latest/c++/Nodes.xml
--
diff --git a/content/api/latest/c++/Nodes.xml b/content/api/latest/c++/Nodes.xml
index 9c517df..a00f3ca 100644
--- a/content/api/latest/c++/Nodes.xml
+++ b/content/api/latest/c++/Nodes.xml
@@ -92367,6 +92367,11 @@
 a4853e9066cb5127d1b29a07d1a3c9e02


+assertDockerKillStatus
+docker__common_8hpp.html
+af386ecbbf46a9598c02450185b4ba3e2
+   
+   
 createDockerIPv6UserNetwork
 docker__common_8hpp.html
 a971a18f563bfbd01896a97a7a72ccde1

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/dfbf7828/content/api/latest/c++/Tokens.xml
--
diff --git a/content/api/latest/c++/Tokens.xml 
b/content/api/latest/c++/Tokens.xml
index d500491..50944c8 100644
--- a/content/api/latest/c++/Tokens.xml
+++ b/content/api/latest/c++/Tokens.xml
@@ -29508,6 +29508,17 @@
   
   
 
+  assertDockerKillStatus
+  cpp
+  func
+  mesos::internal::tests
+
+namespacemesos_1_1internal_1_1tests.html
+af386ecbbf46a9598c02450185b4ba3e2
+docker_common.hpp
+  
+  
+
   DOCKER_IPv6_NETWORK
   cpp
   data
@@ -130853,6 +130864,17 @@
   
   
 
+  assertDockerKillStatus
+  cpp
+  func
+  mesos::internal::tests
+
+namespacemesos_1_1internal_1_1tests.html
+af386ecbbf46a9598c02450185b4ba3e2
+docker_common.hpp
+  
+  
+
   createEnvironment
   cpp
   func

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/dfbf7828/content/api/latest/c++/docker__common_8hpp.html
--
diff --git a/content/api/latest/c++/docker__common_8hpp.html 
b/content/api/latest/c++/docker__common_8hpp.html
index 6ebb2c1..42ed71f 100644
--- a/content/api/latest/c++/docker__common_8hpp.html
+++ b/content/api/latest/c++/docker__common_8hpp.html
@@ -67,6 +67,7 @@
 #include stout/gtest.hpp
 #include stout/lambda.hpp
 #include stout/nothing.hpp
+#include stout/option.hpp
 #include stout/try.hpp
 #include stout/os/mkdtemp.hpp
 #include docker/docker.hpp
@@ -96,6 +97,8 @@ Functions
 
 voidmesos::internal::tests::removeDockerIPv6UserNetwork
 ()
 
+voidmesos::internal::tests::assertDockerKillStatus
 (process::Future Option int  
status)
+
 
 
 Variables

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/dfbf7828/content/api/latest/c++/docker__common_8hpp_source.html
--
diff --git a/content/api/latest/c++/docker__common_8hpp_source.html 
b/content/api/latest/c++/docker__common_8hpp_source.html
index c0ef697..152c698 

[1/3] mesos-site git commit: Updated the website built from mesos SHA: 348ec1a.

2018-03-06 Thread git-site-role
Repository: mesos-site
Updated Branches:
  refs/heads/asf-site 2306ff3ed -> dfbf78286


http://git-wip-us.apache.org/repos/asf/mesos-site/blob/dfbf7828/content/sitemap.xml
--
diff --git a/content/sitemap.xml b/content/sitemap.xml
index 2cd8a21..7d449f4 100644
--- a/content/sitemap.xml
+++ b/content/sitemap.xml
@@ -2,18182 +2,18182 @@
 http://www.sitemaps.org/schemas/sitemap/0.9;>
   
 http://mesos.apache.org/api/latest/java/overview-tree.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 http://mesos.apache.org/api/latest/java/help-doc.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 http://mesos.apache.org/api/latest/java/constant-values.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 http://mesos.apache.org/api/latest/java/allclasses-frame.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 http://mesos.apache.org/api/latest/java/deprecated-list.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 http://mesos.apache.org/api/latest/java/allclasses-noframe.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.TaskState.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.RateLimit.Builder.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.CheckInfo.Http.Builder.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.SlaveInfo.CapabilityOrBuilder.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.Volume.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.LinuxInfo.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.RLimitInfo.RLimit.Type.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.ResourceProviderInfo.Builder.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.ContainerInfoOrBuilder.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.ParameterOrBuilder.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.CgroupInfo.Blkio.Operation.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.CgroupInfo.Blkio.Throttling.Statistics.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.Flag.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.TimeInfo.Builder.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.RLimitInfo.RLimit.Builder.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.CgroupInfo.Blkio.CFQ.StatisticsOrBuilder.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.TTYInfoOrBuilder.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.Ports.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.CommandInfo.URI.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.Offer.Operation.DestroyVolume.Builder.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.UdpStatistics.Builder.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.Operation.html
-2018-03-06T00:00:00+00:00
+2018-03-07T00:00:00+00:00
   
   
 

[2/3] mesos-site git commit: Updated the website built from mesos SHA: 348ec1a.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/dfbf7828/content/api/latest/c++/index.hhk
--
diff --git a/content/api/latest/c++/index.hhk b/content/api/latest/c++/index.hhk
index 2c344f0..66c1016 100644
--- a/content/api/latest/c++/index.hhk
+++ b/content/api/latest/c++/index.hhk
@@ -963,6 +963,11 @@
   
   
   
+  
+  
+
+
+  
   
   
   
@@ -4123,6 +4128,7 @@
   
   
   
+
 
 
 
@@ -13655,6 +13661,7 @@
 
 
 
+
 
 
 
@@ -17830,8 +17837,11 @@
   
   
   
+  
+
+
+  
   
-  
   
   
   
@@ -18157,8 +18167,8 @@
 
 
 
-
 
+
   
   
   
@@ -18504,13 +18514,13 @@
   
   
   
-
 
+
 
 
 
-
 
+
 
 
 
@@ -18758,8 +18768,8 @@
 
 
 
-
 
+
   
   
   
@@ -19021,8 +19031,8 @@
   
   
 
-
 
+
 
   
   
@@ -19414,8 +19424,8 @@
   
   
   
-
 
+
 
 
   
@@ -19449,22 +19459,22 @@
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
@@ -19491,15 +19501,15 @@
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
@@ -19561,22 +19571,22 @@
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
@@ -19596,8 +19606,8 @@
   
   
   
-
 
+
 
 
   
@@ -19617,15 +19627,15 @@
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
@@ -19645,15 +19655,15 @@
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
@@ -19666,8 +19676,8 @@
   
   
   
-
 
+
 
 
   
@@ -19814,8 +19824,8 @@
 
 
   
-  
   
+  
   
   
   
@@ -20186,10 +20196,10 @@
 
 
   
-  
   
-  
+  
   
+
 
 
 
@@ -21081,11 +21091,8 @@
 
   
   
-  
-
-
-  
   
+  
   
   
 
@@ -21281,8 +21288,8 @@
   
   
 
-
 
+
 
 
 
@@ -21618,10 +21625,13 @@
   
   
   
+  
+
+
+  
   
-  
-  
   
+
 
 
   
@@ -21629,22 +21639,28 @@
   
   
   
+  
+
+
+  
   
+  
+
+
+  
   
   
-
 
+
   
   
   
   
   
-
 
+
   
   
-  
-  
   
 
 
@@ -21655,54 +21671,66 @@
 
   
   
-  
-  
   
+
 
-
   
   
   
+
 
-
   
   
   
   
-  
-  
   
-
-
+
+
   
   
+  
+
+
+  
   
   
   
+  
+
+
+  
   
+  
+
+
+  
   
-  
-  
+  
+
+
+  
   
   
   
   
   
   
+
 
-
   
   
   
+
 
-
   
   
   
+
 
-
   
   
+  
+  
   
 
 
@@ -21710,33 +21738,25 @@
   
   
   
+  
+  
   
-
 
+
   
   
-  
-
-
-  
   
   
-  
   
-
-
+
+
   
-  
   
   
   
   
   
   
-  
-
-
-  
   
   
   
@@ -21746,7 +21766,15 @@
   
   
   
+  
+
+
+  
   
+  
+
+
+  
   
   
   
@@ -22133,8 +22161,8 @@
   
   
   
-  
   
+  
   
   
   
@@ -24578,8 +24606,8 @@
 
 
   
-  
   
+  
   
   
   
@@ -25329,8 +25357,8 @@
   
   
   
-  
   
+  
   
   
 

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/dfbf7828/content/api/latest/c++/namespacemembers_0x61.html
--
diff --git a/content/api/latest/c++/namespacemembers_0x61.html 
b/content/api/latest/c++/namespacemembers_0x61.html
index 48ff52f..f19108f 100644
--- a/content/api/latest/c++/namespacemembers_0x61.html
+++ b/content/api/latest/c++/namespacemembers_0x61.html
@@ -204,6 +204,9 @@
 arg1
 : os::Shell
 
+assertDockerKillStatus()
+: mesos::internal::tests
+
 AssertZKGet()
 : mesos::internal::tests
 
@@ -214,19 +217,19 @@
 : os
 
 async()
-: process
+: process
 
 ASYNC
 : cgroups::blkio
 
 async()
-: process
+: process
 
 async_watcher
 : process
 
 attach()
-: routing::filter::internal
+: routing::filter::internal
 
 AUDIT_CONTROL
 : mesos::internal::capabilities
@@ -244,8 +247,8 @@
 : process
 
 AUTHENTICATION_RETRY_INTERVAL_MAX
-: mesos::internal::slave
-, mesos::internal::scheduler
+: mesos::internal::scheduler
+, mesos::internal::slave
 
 AUTHORIZABLE_ENDPOINTS
 : mesos::internal
@@ -263,8 +266,7 @@
 : mesos
 
 await()
-: process
-, process::internal
+: process::internal
 , process
 
 awaited()

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/dfbf7828/content/api/latest/c++/namespacemembers_0x67.html
--
diff --git a/content/api/latest/c++/namespacemembers_0x67.html 
b/content/api/latest/c++/namespacemembers_0x67.html
index 18e2589..9aa513c 100644
--- a/content/api/latest/c++/namespacemembers_0x67.html
+++ b/content/api/latest/c++/namespacemembers_0x67.html
@@ -573,12 +573,12 @@
 gmtime_r()
 : os
 
-gzip()
-: mesos::internal::command
-
 GZIP
 

mesos git commit: Windows: Ported `docker_tests.cpp`.

2018-03-06 Thread andschwa
Repository: mesos
Updated Branches:
  refs/heads/master be8be3b88 -> 348ec1a60


Windows: Ported `docker_tests.cpp`.

Ported the disabled tests to run on Windows. The following tests
could not be ported due to Windows platform limitations and remain
disabled:

- ROOT_DOCKER_MountRelativeContainerPath: Can't mount volumes inside
  sandbox.
- ROOT_DOCKER_NVIDIA_GPU_DeviceAllow: No GPU container support.
- ROOT_DOCKER_NVIDIA_GPU_InspectDevices: No GPU container support.

Review: https://reviews.apache.org/r/63862/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/348ec1a6
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/348ec1a6
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/348ec1a6

Branch: refs/heads/master
Commit: 348ec1a606f54c8479379fa841c74927977fab5f
Parents: be8be3b
Author: Akash Gupta 
Authored: Tue Mar 6 15:34:38 2018 -0800
Committer: Andrew Schwartzmeyer 
Committed: Tue Mar 6 15:34:38 2018 -0800

--
 src/tests/containerizer/docker_common.hpp |  13 ++
 src/tests/containerizer/docker_tests.cpp  | 229 ++---
 2 files changed, 177 insertions(+), 65 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/mesos/blob/348ec1a6/src/tests/containerizer/docker_common.hpp
--
diff --git a/src/tests/containerizer/docker_common.hpp 
b/src/tests/containerizer/docker_common.hpp
index 3d69e54..172eea3 100644
--- a/src/tests/containerizer/docker_common.hpp
+++ b/src/tests/containerizer/docker_common.hpp
@@ -29,6 +29,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -184,6 +185,18 @@ inline void removeDockerIPv6UserNetwork()
 #endif // __WINDOWS__
 }
 
+
+inline void assertDockerKillStatus(process::Future

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

2018-03-06 Thread git-site-role
Repository: mesos-site
Updated Branches:
  refs/heads/asf-site c6a7f7380 -> ac06474e7


http://git-wip-us.apache.org/repos/asf/mesos-site/blob/ac06474e/content/sitemap.xml
--
diff --git a/content/sitemap.xml b/content/sitemap.xml
index 1227090..ec5356f 100644
--- a/content/sitemap.xml
+++ b/content/sitemap.xml
@@ -2,18174 +2,18174 @@
 http://www.sitemaps.org/schemas/sitemap/0.9;>
   
 http://mesos.apache.org/api/latest/java/overview-tree.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 http://mesos.apache.org/api/latest/java/help-doc.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 http://mesos.apache.org/api/latest/java/constant-values.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 http://mesos.apache.org/api/latest/java/allclasses-frame.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 http://mesos.apache.org/api/latest/java/deprecated-list.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 http://mesos.apache.org/api/latest/java/allclasses-noframe.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.TaskState.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.RateLimit.Builder.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.CheckInfo.Http.Builder.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.SlaveInfo.CapabilityOrBuilder.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.Volume.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.LinuxInfo.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.RLimitInfo.RLimit.Type.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.ResourceProviderInfo.Builder.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.ContainerInfoOrBuilder.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.ParameterOrBuilder.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.CgroupInfo.Blkio.Operation.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.CgroupInfo.Blkio.Throttling.Statistics.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.Flag.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.TimeInfo.Builder.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.RLimitInfo.RLimit.Builder.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.CgroupInfo.Blkio.CFQ.StatisticsOrBuilder.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.TTYInfoOrBuilder.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.Ports.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.CommandInfo.URI.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.Offer.Operation.DestroyVolume.Builder.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.UdpStatistics.Builder.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 
http://mesos.apache.org/api/latest/java/org/apache/mesos/Protos.Operation.html
-2018-03-05T00:00:00+00:00
+2018-03-06T00:00:00+00:00
   
   
 

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

2018-03-06 Thread git-site-role
Updated the website built from mesos SHA: 477d49a.


Project: http://git-wip-us.apache.org/repos/asf/mesos-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos-site/commit/ac06474e
Tree: http://git-wip-us.apache.org/repos/asf/mesos-site/tree/ac06474e
Diff: http://git-wip-us.apache.org/repos/asf/mesos-site/diff/ac06474e

Branch: refs/heads/asf-site
Commit: ac06474e7a1b85b17c791cf0b8b5c4c7badd180f
Parents: c6a7f73
Author: jenkins 
Authored: Tue Mar 6 14:52:55 2018 +
Committer: jenkins 
Committed: Tue Mar 6 14:52:55 2018 +

--
 content/blog/feed.xml   |2 +-
 .../index.html  |2 +-
 content/sitemap.xml | 9086 +-
 3 files changed, 4545 insertions(+), 4545 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/mesos-site/blob/ac06474e/content/blog/feed.xml
--
diff --git a/content/blog/feed.xml b/content/blog/feed.xml
index 78ca2fc..b125f1c 100644
--- a/content/blog/feed.xml
+++ b/content/blog/feed.xml
@@ -295,7 +295,7 @@ To learn more about CSI work in Mesos, you can dig into the 
design document 
 /ul
 
 
-pIf you are a user and would like to suggest some areas for 
performance improvement, please let us know by emailing a 
href=#x6d;#97;#105;#108;#116;#x6f;#58;#100;#x65;#x76;#x40;#97;#112;#97;#x63;#x68;#x65;#x2e;#109;#x65;#x73;#x6f;#x73;#x2e;#x6f;#x72;#103;#x64;#x65;#118;#64;#97;#112;#x61;#x63;#104;#101;#x2e;#109;#101;#x73;#111;#115;#x2e;#111;#x72;#103;/a./p
+pIf you are a user and would like to suggest some areas for 
performance improvement, please let us know by emailing a 
href=#109;#x61;#105;#x6c;#116;#x6f;#x3a;#100;#x65;#118;#x40;#x61;#x70;#x61;#99;#104;#x65;#x2e;#x6d;#x65;#x73;#x6f;#x73;#46;#x6f;#x72;#103;#100;#101;#x76;#x40;#97;#112;#x61;#x63;#x68;#x65;#x2e;#x6d;#101;#x73;#x6f;#x73;#46;#111;#x72;#103;/a./p
 

   

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/ac06474e/content/blog/performance-working-group-progress-report/index.html
--
diff --git a/content/blog/performance-working-group-progress-report/index.html 
b/content/blog/performance-working-group-progress-report/index.html
index dc89d95..76f7021 100644
--- a/content/blog/performance-working-group-progress-report/index.html
+++ b/content/blog/performance-working-group-progress-report/index.html
@@ -248,7 +248,7 @@
 
 
 
-If you are a user and would like to suggest some areas for performance 
improvement, please let us know by emailing .
+If you are a user and would like to suggest some areas for performance 
improvement, please let us know by emailing .
 
   
 



mesos git commit: Simplified system requirements of balloon executor.

2018-03-06 Thread bbannier
Repository: mesos
Updated Branches:
  refs/heads/master 8f4552e37 -> 477d49a2f


Simplified system requirements of balloon executor.

The ballon executor demonstrates that if memory is isolated, executors
can get terminated should they exceed limits. For that the executor
allocates increasing amounts of memory. To make sure that the isolator
measurement is not skewed in the presence of swap, the executor
additionally locks the memory to make sure all allocated memory is
accounted for by the isolator.

Since the amount of memory a process can restricted on the system
level with `RLIMIT_MEMLOCK`, running this example can be impossible on
some setups.

This patch removes unneeded locking of memory on systems not using
swap. With that this example can be run on more setups, e.g., under
restricted accounts if no swap is used.

Review: https://reviews.apache.org/r/65921/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/477d49a2
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/477d49a2
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/477d49a2

Branch: refs/heads/master
Commit: 477d49a2f01c3a604e43af9efbf1332b864bfc70
Parents: 8f4552e
Author: Benjamin Bannier 
Authored: Tue Mar 6 15:17:06 2018 +0100
Committer: Benjamin Bannier 
Committed: Tue Mar 6 15:17:06 2018 +0100

--
 src/examples/balloon_executor.cpp | 59 +++---
 1 file changed, 55 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/mesos/blob/477d49a2/src/examples/balloon_executor.cpp
--
diff --git a/src/examples/balloon_executor.cpp 
b/src/examples/balloon_executor.cpp
index 941cbe7..5281db1 100644
--- a/src/examples/balloon_executor.cpp
+++ b/src/examples/balloon_executor.cpp
@@ -23,6 +23,7 @@
 
 #include 
 
+#include 
 #include 
 #include 
 #include 
@@ -39,9 +40,44 @@
 using namespace mesos;
 
 
+// Helper function to check whether the system uses swap.
+//
+// TODO(bbannier): Augment this implementation to explicitly check for swap
+// on platforms other than Linux as well. It might make sense to move this
+// function to stout once the implementation becomes more complete.
+Try hasSwap() {
+  // We read `/proc/swaps` and check whether any active swap
+  // partitions are listed. The format of that file is e.g.,
+  //
+  // Filename  Type  Size   Used Priority
+  // /dev/sda4 partition 1234567890 348  -1
+  // /dev/sdb4 partition 1234567890 0-2
+  //
+  // If we find more than one line (including the header) the
+  // system likely uses swap.
+  int numberOfLines = 0;
+
+  std::ifstream swaps("/proc/swaps");
+  std::string line;
+
+  while (std::getline(swaps, line)) {
+++numberOfLines;
+  }
+
+  // Check for read errors. This provides a default implementation
+  // for platforms without proc filesystem as well.
+  if (!swaps.eof()) {
+return Error("Could not determine whether this system uses swap");
+  }
+
+  return numberOfLines > 1;
+}
+
+
 // The amount of memory in MB each balloon step consumes.
 const static size_t BALLOON_STEP_MB = 64;
 
+
 // This function will increase the memory footprint gradually.
 // `TaskInfo.data` specifies the upper limit (in MB) of the memory
 // footprint. The upper limit can be larger than the amount of memory
@@ -61,6 +97,19 @@ void run(ExecutorDriver* driver, const TaskInfo& task)
   CHECK(_limit.isSome());
   const size_t limit = _limit->bytes() / Bytes::MEGABYTES;
 
+  // On systems with swap partitions we explicitly prevent memory used by the
+  // executor from being swapped out with `mlock`. Since the amount of memory a
+  // process can lock is controlled by an rlimit, we only `mlock` when
+  // strictly necessary to prevent complicating the test setup.
+  Try hasSwap_ = hasSwap();
+  const bool lockMemory = hasSwap_.isError() || hasSwap_.get();
+
+  if (lockMemory) {
+LOG(INFO)
+  << "System might use swap partitions, will explicitly"
+  << " lock memory to prevent swapping";
+  }
+
   const size_t chunk = BALLOON_STEP_MB * 1024 * 1024;
   for (size_t i = 0; i < limit / BALLOON_STEP_MB; i++) {
 LOG(INFO)
@@ -73,14 +122,16 @@ void run(ExecutorDriver* driver, const TaskInfo& task)
   "Failed to allocate page-aligned memory, posix_memalign").message;
 }
 
-// We use memset and mlock here to make sure that the memory
-// actually gets paged in and thus accounted for.
+// We use `memset` and possibly `mlock` here to make sure that the
+// memory actually gets paged in and thus accounted for.
 if (memset(buffer, 1, chunk) != buffer) {
   LOG(FATAL) << ErrnoError("Failed to fill memory, memset").message;
 }
 
-if (mlock(buffer, chunk) != 

[02/12] mesos-site git commit: Updated the website built from mesos SHA: 0d247c3.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/src_2resource__provider_2message_8hpp_source.html
--
diff --git 
a/content/api/latest/c++/src_2resource__provider_2message_8hpp_source.html 
b/content/api/latest/c++/src_2resource__provider_2message_8hpp_source.html
index 5e0aed4..900bb53 100644
--- a/content/api/latest/c++/src_2resource__provider_2message_8hpp_source.html
+++ b/content/api/latest/c++/src_2resource__provider_2message_8hpp_source.html
@@ -102,9 +102,9 @@
   
 48  struct UpdateState
49 
 {
 
   50ResourceProviderInfo info;
-
   51id::UUID resourceVersion;
+
   51UUID resourceVersion;
 
   52Resources totalResources;
-
   53hashmapid::UUID, Operation operations;
+
   53hashmapUUID, Operation operations;
54 
 };

55
 
   56  struct UpdateOperationStatus
@@ -185,25 +185,24 @@
 OptionDefinition: 
option.hpp:28
 mesos::internal::ResourceProviderMessage::UpdateState::infoResourceProviderInfo infoDefinition: message.hpp:50
 mesos::internal::ResourceProviderMessage::DisconnectDefinition: message.hpp:61
-mesos::internal::ResourceProviderMessage::UpdateState::resourceVersionid::UUID resourceVersionDefinition: message.hpp:51
+mesos::internal::ResourceProviderMessage::UpdateState::resourceVersionUUID resourceVersionDefinition: 
message.hpp:51
 mesos.hpp
 mesos::internal::operatorstd::ostream  operator(std::ostream stream, 
const ImageGcConfig imageGcConfig)Definition: flags.hpp:92
 mesos::ResourcesDefinition: resources.hpp:79
 mesos::internal::ResourceProviderMessage::UpdateStateDefinition: message.hpp:48
 check.hpp
 mesos::internal::ResourceProviderMessage::Disconnect::resourceProviderIdResourceProviderID resourceProviderIdDefinition: message.hpp:63
-hashmap id::UUID, Operation 
+hashmap UUID, Operation 
+mesos::internal::ResourceProviderMessage::UpdateState::operationshashmap UUID, Operation  operationsDefinition: message.hpp:53
 CHECK_SOME#define CHECK_SOME(expression)Definition: check.hpp:50
 mesos::internal::ResourceProviderMessage::typeType typeDefinition: 
message.hpp:66
 mesos::internal::ResourceProviderMessage::Type::DISCONNECT
-id::UUIDDefinition: uuid.hpp:35
 mesos::internal::ResourceProviderMessage::disconnectOption Disconnect  disconnectDefinition: message.hpp:70
 protobuf.hpp
 option.hpp
 mesos::internal::ResourceProviderMessage::Type::UPDATE_OPERATION_STATUS
 mesos::internal::ResourceProviderMessage::updateOperationStatusOption UpdateOperationStatus  
updateOperationStatusDefinition: 
message.hpp:69
 UNREACHABLE#define UNREACHABLE()Definition: unreachable.hpp:22
-mesos::internal::ResourceProviderMessage::UpdateState::operationshashmap id::UUID, Operation  operationsDefinition: message.hpp:53
 mesos::internal::ResourceProviderMessage::TypeTypeDefinition: 
message.hpp:41
 mesos::internal::ResourceProviderMessage::UpdateOperationStatus::updateUpdateOperationStatusMessage updateDefinition: message.hpp:58
 jsonify.hpp

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/structmesos_1_1internal_1_1ResourceProviderMessage_1_1UpdateState-members.html
--
diff --git 
a/content/api/latest/c++/structmesos_1_1internal_1_1ResourceProviderMessage_1_1UpdateState-members.html
 
b/content/api/latest/c++/structmesos_1_1internal_1_1ResourceProviderMessage_1_1UpdateState-members.html
index eee1429..9fa7afa 100644
--- 
a/content/api/latest/c++/structmesos_1_1internal_1_1ResourceProviderMessage_1_1UpdateState-members.html
+++ 
b/content/api/latest/c++/structmesos_1_1internal_1_1ResourceProviderMessage_1_1UpdateState-members.html
@@ -58,8 +58,8 @@
 This is the complete list of members for mesos::internal::ResourceProviderMessage::UpdateState,
 including all inherited members.
 
   infomesos::internal::ResourceProviderMessage::UpdateState
-  operationsmesos::internal::ResourceProviderMessage::UpdateState
-  resourceVersionmesos::internal::ResourceProviderMessage::UpdateState
+  operationsmesos::internal::ResourceProviderMessage::UpdateState
+  resourceVersionmesos::internal::ResourceProviderMessage::UpdateState
   totalResourcesmesos::internal::ResourceProviderMessage::UpdateState
 
 

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/structmesos_1_1internal_1_1ResourceProviderMessage_1_1UpdateState.html
--
diff --git 
a/content/api/latest/c++/structmesos_1_1internal_1_1ResourceProviderMessage_1_1UpdateState.html
 
b/content/api/latest/c++/structmesos_1_1internal_1_1ResourceProviderMessage_1_1UpdateState.html
index af9e642..3b4ca13 100644
--- 
a/content/api/latest/c++/structmesos_1_1internal_1_1ResourceProviderMessage_1_1UpdateState.html
+++ 
b/content/api/latest/c++/structmesos_1_1internal_1_1ResourceProviderMessage_1_1UpdateState.html
@@ -64,12 +64,12 @@
 Public 

[01/12] mesos-site git commit: Updated the website built from mesos SHA: 0d247c3.

2018-03-06 Thread git-site-role
Repository: mesos-site
Updated Branches:
  refs/heads/asf-site ac06474e7 -> 53f3d2403


http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/type__utils_8hpp_source.html
--
diff --git a/content/api/latest/c++/type__utils_8hpp_source.html 
b/content/api/latest/c++/type__utils_8hpp_source.html
index b959268..9077a96 100644
--- a/content/api/latest/c++/type__utils_8hpp_source.html
+++ b/content/api/latest/c++/type__utils_8hpp_source.html
@@ -811,10 +811,27 @@
   761 
 }
   
762};
   
763
-  
764} // namespace std {
-  
765
-  
766#endif // 
__MESOS_TYPE_UTILS_H__
+  
764
+  
765template 
+  
766struct 
hashmesos::UUID
+  
767{
+
  768  typedef size_t result_type;
+  
769
+
  770  typedef mesos::UUID argument_type;
+  
771
+
  772  result_type
 operator()(const argument_type
 uuid) const
+  
773  {
+  774 
   size_t seed = 0;
+  775 
   boost::hash_combine(seed, uuid.value());
+  776 
   return seed;
+  777 
 }
+  
778};
+  
779
+  
780} // namespace std {
+  
781
+  
782#endif // 
__MESOS_TYPE_UTILS_H__
 mesos::operatorstd::ostream  operator(std::ostream stream, 
const Attribute attribute)
+std::hash
 mesos::UUID ::result_typesize_t 
result_typeDefinition: 
type_utils.hpp:768
 std::hash 
mesos::FrameworkID Definition: 
type_utils.hpp:575
 std::hash
 mesos::MachineID ::argument_typemesos::MachineID argument_typeDefinition: type_utils.hpp:721
 std::hash
 mesos::ExecutorID ::operator()result_type 
operator()(const argument_type executorId) const Definition: type_utils.hpp:565
@@ -847,6 +864,8 @@
 std::hash
 mesos::TaskStatus_Source ::operator()result_type operator()(const argument_type source) const 
Definition: type_utils.hpp:660
 mesos::operator!=bool operator!=(const Resource::ReservationInfo left, 
const Resource::ReservationInfo right)
 mesos::internal::tests::environmentEnvironment * environment
+std::hash
 mesos::UUID ::argument_typemesos::UUID 
argument_typeDefinition: 
type_utils.hpp:770
+std::hash
 mesos::UUID ::operator()result_type 
operator()(const argument_type uuid) const Definition: type_utils.hpp:772
 std::hash
 mesos::OfferID ::result_typesize_t 
result_typeDefinition: 
type_utils.hpp:593
 std::hash
 mesos::TaskState ::result_typesize_t 
result_typeDefinition: 
type_utils.hpp:641
 std::hash
 mesos::OperationID ::result_typesize_t 
result_typeDefinition: 
type_utils.hpp:736

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/blog/feed.xml
--
diff --git a/content/blog/feed.xml b/content/blog/feed.xml
index b125f1c..c6d3b51 100644
--- a/content/blog/feed.xml
+++ b/content/blog/feed.xml
@@ -295,7 +295,7 @@ To learn more about CSI work in Mesos, you can dig into the 
design document 
 /ul
 
 
-pIf you are a user and would like to suggest some areas for 
performance improvement, please let us know by emailing a 
href=#109;#x61;#105;#x6c;#116;#x6f;#x3a;#100;#x65;#118;#x40;#x61;#x70;#x61;#99;#104;#x65;#x2e;#x6d;#x65;#x73;#x6f;#x73;#46;#x6f;#x72;#103;#100;#101;#x76;#x40;#97;#112;#x61;#x63;#x68;#x65;#x2e;#x6d;#101;#x73;#x6f;#x73;#46;#111;#x72;#103;/a./p
+pIf you are a user and would like to suggest some areas for 
performance improvement, please let us know by emailing a 
href=#x6d;#97;#105;#108;#116;#x6f;#x3a;#100;#x65;#118;#64;#x61;#x70;#x61;#99;#104;#101;#46;#109;#x65;#115;#x6f;#x73;#x2e;#x6f;#x72;#103;#x64;#101;#118;#64;#97;#x70;#97;#99;#x68;#x65;#x2e;#109;#101;#x73;#111;#x73;#46;#x6f;#x72;#103;/a./p
 

   

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/blog/performance-working-group-progress-report/index.html
--
diff --git a/content/blog/performance-working-group-progress-report/index.html 
b/content/blog/performance-working-group-progress-report/index.html
index 76f7021..d8a59ae 100644
--- a/content/blog/performance-working-group-progress-report/index.html
+++ b/content/blog/performance-working-group-progress-report/index.html
@@ -248,7 +248,7 @@
 
 
 
-If you are a user and would like to suggest some areas for performance 
improvement, please let us know by emailing .
+If you are a user and would like to suggest some areas for performance 
improvement, please let us know by emailing .
 
   
 

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/sitemap.xml
--
diff --git a/content/sitemap.xml b/content/sitemap.xml
index ec5356f..2cd8a21 100644
--- a/content/sitemap.xml
+++ b/content/sitemap.xml
@@ -13817,6 +13817,10 @@
 2018-03-06T00:00:00+00:00
   
   
+
http://mesos.apache.org/api/latest/c++/structstd_1_1hash_3_01mesos_1_1UUID_01_4-members.html
+2018-03-06T00:00:00+00:00
+  
+  
 
http://mesos.apache.org/api/latest/c++/posix__signalhandler_8hpp_source.html
 2018-03-06T00:00:00+00:00
   
@@ -15081,6 

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

2018-03-06 Thread git-site-role
Updated the website built from mesos SHA: 0d247c3.


Project: http://git-wip-us.apache.org/repos/asf/mesos-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos-site/commit/53f3d240
Tree: http://git-wip-us.apache.org/repos/asf/mesos-site/tree/53f3d240
Diff: http://git-wip-us.apache.org/repos/asf/mesos-site/diff/53f3d240

Branch: refs/heads/asf-site
Commit: 53f3d240320c65d3a422b86bbecffd7145e3751d
Parents: ac06474
Author: jenkins 
Authored: Tue Mar 6 16:55:43 2018 +
Committer: jenkins 
Committed: Tue Mar 6 16:55:43 2018 +

--
 content/api/latest/c++/Nodes.xml|  322 +--
 content/api/latest/c++/Tokens.xml   |   85 +-
 content/api/latest/c++/annotated.html   |   63 +-
 content/api/latest/c++/classes.html |  358 ++--
 ...s_1_1internal_1_1slave_1_1Slave-members.html |2 +-
 ...lassmesos_1_1internal_1_1slave_1_1Slave.html |8 +-
 ...1internal_1_1tests_1_1MockSlave-members.html |2 +-
 ...mesos_1_1internal_1_1tests_1_1MockSlave.html |4 +-
 content/api/latest/c++/functions.html   |2 +-
 content/api/latest/c++/functions_0x61.html  |  113 +-
 content/api/latest/c++/functions_0x67.html  |2 +-
 content/api/latest/c++/functions_0x6f.html  |  250 ++-
 content/api/latest/c++/functions_0x72.html  |  172 +-
 content/api/latest/c++/functions_0x73.html  |2 +-
 content/api/latest/c++/functions_0x75.html  |2 +-
 content/api/latest/c++/functions_func.html  |2 +-
 content/api/latest/c++/functions_func_0x67.html |2 +-
 content/api/latest/c++/functions_func_0x6f.html |  241 +--
 content/api/latest/c++/functions_func_0x72.html |2 +-
 content/api/latest/c++/functions_func_0x73.html |2 +-
 content/api/latest/c++/functions_func_0x75.html |2 +-
 content/api/latest/c++/functions_type.html  |6 +-
 content/api/latest/c++/functions_vars_0x6f.html |   10 +-
 content/api/latest/c++/functions_vars_0x72.html |6 +-
 content/api/latest/c++/hierarchy.html   | 1863 +-
 content/api/latest/c++/index.hhc|  157 +-
 content/api/latest/c++/index.hhk|  287 +--
 content/api/latest/c++/index.hhp|2 +
 .../api/latest/c++/namespacemembers_0x63.html   |6 +-
 .../api/latest/c++/namespacemembers_0x70.html   |2 +-
 .../latest/c++/namespacemembers_func_0x63.html  |6 +-
 .../latest/c++/namespacemembers_func_0x70.html  |2 +-
 .../namespacemesos_1_1internal_1_1protobuf.html |   37 +-
 content/api/latest/c++/namespacestd.html|2 +
 .../api/latest/c++/protobuf__utils_8hpp.html|   21 +-
 .../latest/c++/protobuf__utils_8hpp_source.html |   22 +-
 content/api/latest/c++/slave_8hpp_source.html   |   29 +-
 .../c++/src_2master_2master_8hpp_source.html| 1080 +-
 ...resource__provider_2message_8hpp_source.html |   11 +-
 ...eProviderMessage_1_1UpdateState-members.html |4 +-
 ...1ResourceProviderMessage_1_1UpdateState.html |   16 +-
 ...internal_1_1master_1_1Framework-members.html |4 +-
 ...esos_1_1internal_1_1master_1_1Framework.html |   16 +-
 ..._1_1internal_1_1master_1_1Slave-members.html |   10 +-
 ...uctmesos_1_1internal_1_1master_1_1Slave.html |   43 +-
 ...al_1_1slave_1_1ResourceProvider-members.html |6 +-
 ..._1internal_1_1slave_1_1ResourceProvider.html |   24 +-
 ..._1_1hash_3_01mesos_1_1UUID_01_4-members.html |   71 +
 ...tructstd_1_1hash_3_01mesos_1_1UUID_01_4.html |  137 ++
 content/api/latest/c++/type__utils_8hpp.html|2 +
 .../api/latest/c++/type__utils_8hpp_source.html |   25 +-
 content/blog/feed.xml   |2 +-
 .../index.html  |2 +-
 content/sitemap.xml |8 +
 54 files changed, 2944 insertions(+), 2613 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/Nodes.xml
--
diff --git a/content/api/latest/c++/Nodes.xml b/content/api/latest/c++/Nodes.xml
index d222022..25573bc 100644
--- a/content/api/latest/c++/Nodes.xml
+++ b/content/api/latest/c++/Nodes.xml
@@ -7443,7 +7443,7 @@

 Slave
 
structmesos_1_1internal_1_1master_1_1Slave.html
-a299d31059b1a422f179f12e2b81c8463
+ad9989edad235edf8dfcb40cb68966469


 ~Slave
@@ -7483,7 +7483,7 @@

 getOperation
 
structmesos_1_1internal_1_1master_1_1Slave.html
-a8e6bcddc552f8f4af9671a13fe041b5b
+a165609c395c72244513e2cc8e103f0a9


 

[03/12] mesos-site git commit: Updated the website built from mesos SHA: 0d247c3.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/src_2master_2master_8hpp_source.html
--
diff --git a/content/api/latest/c++/src_2master_2master_8hpp_source.html 
b/content/api/latest/c++/src_2master_2master_8hpp_source.html
index 96d9e54..075838c 100644
--- a/content/api/latest/c++/src_2master_2master_8hpp_source.html
+++ b/content/api/latest/c++/src_2master_2master_8hpp_source.html
@@ -170,7 +170,7 @@
   
116
   
117struct Slave
   
118{
-  
119Slave(Master* const _master,
+  
119Slave(Master* const _master,
   120 
 SlaveInfo _info,
   121 
   const process::UPID _pid,
   122 
   const MachineID _machineId,
@@ -178,7 +178,7 @@
   124 
   std::vectorSlaveInfo::Capability _capabilites,
   125 
   const process::Time _registeredTime,
   126 
   std::vectorResource _checkpointedResources,
-  127 
   const Optionid::UUID resourceVersion,
+  127 
   const OptionUUID resourceVersion,
   128 
   std::vectorExecutorInfo executorInfos = 
std::vectorExecutorInfo(),
   129 
   std::vectorTask tasks
 = std::vectorTask());
   
130
@@ -206,7 +206,7 @@
   
152
   153 
 void removeOperation(Operation*
 operation);
   
154
-  155 
 Operation*
 getOperation(const id::UUID uuid) const;
+  155 
 Operation*
 getOperation(const UUID uuid) const;
   
156
   157 
 void addOffer(Offer*
 offer);
   
158
@@ -230,12 +230,12 @@
   
176
   177 
 void apply(const std::vectorResourceConversion 
conversions);
   
178
-  179 
 TryNothing update(
+  179 
 TryNothing update(
   180 
 const SlaveInfo info,
   181 
 const std::string _version,
   182 
 const 
std::vectorSlaveInfo::Capability _capabilites,
   183 
 const Resources 
_checkpointedResources,
-  184 
 const Optionid::UUID resourceVersion);
+  184 
 const OptionUUID resourceVersion);
   
185
 
  186  Master* const master;
 
  187  const SlaveID id;
@@ -299,7 +299,7 @@
   
245
   246 
 // Pending operations or terminal operations that 
have
   247 
 // unacknowledged status updates on this 
agent.
-
  248  hashmapid::UUID, Operation* operations;
+
  248  hashmapUUID, Operation* operations;
   
249
   250 
 // Active offers on this slave.
 
  251  hashsetOffer* offers;
@@ -332,11 +332,11 @@
   
278
 
  279  SlaveObserver* observer;
   
280
-
  281  hashmapOptionResourceProviderID, id::UUID resourceVersions;
+
  281  hashmapOptionResourceProviderID, 
UUID resourceVersions;
 
  282  hashmapResourceProviderID, 
ResourceProviderInfo resourceProviders;
   
283
   
284private:
-  285 
 Slave(const Slave); 
 // No copying.
+  285 
 Slave(const Slave); 
 // No copying.
   286 
 Slave 
operator=(const Slave); // No assigning.
   
287};
   
288
@@ -2454,506 +2454,504 @@
  
2508
  2509 
   const FrameworkID frameworkId = 
operation-framework_id();
  
2510
- 2511 
   Tryid::UUID uuid = id::UUID::fromBytes(operation-uuid().value());
- 2512 
   CHECK_SOME(uuid);
- 
2513
- 2514 
   CHECK(!operations.contains(uuid.get()))
- 2515 
  Duplicate operation 
  operation-info().id()
- 2516 
   (uuid:  
 uuid-toString() 
 ) 
- 2517 
  of framework  
 frameworkId;
- 
2518
- 2519 
   operations.put(uuid.get(), 
operation);
- 
2520
- 2521 
   if (operation-info().has_id()) {
- 2522 
 operationUUIDs.put(operation-info().id(),
 uuid.get());
- 2523 
   }
- 
2524
- 2525 
   if (!protobuf::isSpeculativeOperation(operation-info())
 
- 2526 
   !protobuf::isTerminalState(operation-latest_status().state()))
 {
- 2527 
 TryResources consumed 
=
- 2528 
   protobuf::getConsumedResources(operation-info());
- 2529 
 CHECK_SOME(consumed);
- 
2530
- 2531 
 CHECK(operation-has_slave_id())
- 2532 
External resource provider is 
not supported yet;
- 
2533
- 2534 
 const SlaveID slaveId = 
operation-slave_id();
- 
2535
- 2536 
 totalUsedResources
 += consumed.get();
- 2537 
 usedResources[slaveId]
 += consumed.get();
- 
2538
- 2539 
 // Its possible that were not tracking the 
role from the
- 2540 
 // resources in the operation for this framework if 
the role is
- 2541 
 // absent from the frameworks set of roles. In 
this case, we
- 2542 
 // track the roles allocation for this 
framework.
- 2543 
 foreachkey 
(const std::string role, 
consumed-allocations()) {
- 2544 
   if (!isTrackedUnderRole(role))
 {
- 2545 
 trackUnderRole(role);
- 2546 
   }
- 2547 
 }
- 2548 
   }
- 2549 
 }
- 
2550
-
 2551  void recoverResources(Operation*
 operation)
- 2552 
 {
- 2553 
   CHECK(operation-has_slave_id())
- 2554 
  External resource provider is 
not supported yet;
- 
2555
- 2556 
   const SlaveID slaveId = 
operation-slave_id();
- 
2557
- 2558 
   if (protobuf::isSpeculativeOperation(operation-info()))
 {
- 2559 
 return;
- 2560 
   }
- 
2561
- 2562 
   TryResources consumed = protobuf::getConsumedResources(operation-info());
- 2563 
   

[11/12] mesos-site git commit: Updated the website built from mesos SHA: 0d247c3.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/classes.html
--
diff --git a/content/api/latest/c++/classes.html 
b/content/api/latest/c++/classes.html
index 8a04699..0728732 100644
--- a/content/api/latest/c++/classes.html
+++ b/content/api/latest/c++/classes.html
@@ -53,209 +53,209 @@
 A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Z|_
 
 A
-EnvironmentSecretIsolatorProcess
 (mesos::internal::slave)InMemoryAuxiliaryPropertyPlugin
 (mesos::internal::cram_md5)NanosecondsSequence 
(process)
-Envp 
(os::raw)InMemoryStorage (mesos::state)Nested 
(mesos::internal::checks::runtime)SequenceProcess (process)
-Accepted (process::http)EphemeralPortsAllocator
 (mesos::internal::slave)Subprocess::IO::InputFileDescriptors
 (process)NetClsHandle 
(mesos::internal::slave)Server (process::http)
-AcceptingObjectApprover 
(mesos)ErrnoErrorinteger_sequence (cpp14)NetClsHandleManager
 (mesos::internal::slave)ServiceUnavailable 
(process::http)
-Entry::Access (cgroups::devices)ErrnoFailure (process)IntegerSequenceGen
 (cpp14::internal)NetClsSubsystem
 (mesos::internal::slave)SessionTracker
 (org::apache::zookeeper::server)
-Docker::Device::AccessErrorIntegerSequenceGen
 T, 0, Is... (cpp14::internal)Netlink (routing)SetnsTestHelper
 (mesos::internal::tests)
-Action (routing::action)Event (process)InternalServerError
 (process::http)NetPrioSubsystem
 (mesos::internal::slave)Shared (process)
-ActiveUserTestHelper
 (mesos::internal::tests)ZooKeeperTest::TestWatcher::Event
 (mesos::internal::tests)InterpreterLock (mesos::python)NetworkSharedFilesystemIsolatorProcess
 (mesos::internal::slave)
-Address (process::network)EventConsumer (process)IntervalIP::Network (net)SharedHandle
-Address (process::network::unix)EventLoop 
(process)interval_bound_type
 Interval T   (boost::icl)NetworkCniIsolatorProcess
 (mesos::internal::slave)Slave (mesos::internal::master)
-Address (process::network::inet6)EventQueue (process)interval_traits
 Interval T   (boost::icl)NetworkCniIsolatorSetup
 (mesos::internal::slave)HierarchicalAllocatorProcess::Slave (mesos::internal::master::allocator::internal)
-Address (process::network::inet4)EventVisitor (process)IntervalSetNetworkPortsIsolatorProcess
 (mesos::internal::slave)Slave (mesos::internal::tests::cluster)
-Address (process::network::inet)Exec (os)Invoke (lambda::internal)NetworkProcessSlave (mesos::internal::slave)
-AdmitResourceProvider
 (mesos::resource_provider)Executor (mesos::internal::slave)Invoke void 
 (lambda::internal)NIOServerCnxnFactory
 (org::apache::zookeeper::server)SlaveState (mesos::internal::slave::state)
-AdmitSlave (mesos::internal::master)Executor (mesos)ContainerIO::IO (mesos::slave)DRFSorter::Node
 (mesos::internal::master::allocator)Socket (process::network::internal)
-AgentRegistrar
 (mesos::resource_provider)Executor 
(process)Subprocess::IO (process)NoneSocketImpl 
(process::network::internal)
-DRFSorter::Node::Allocation
 (mesos::internal::master::allocator)ExecutorDriver (mesos)IOSwitchboard 
(mesos::internal::slave)NoopQoSController
 (mesos::internal::slave)Sock
 etManager (process)
-Allocator (mesos::allocator)ExecutorRunPath
 (mesos::internal::slave::paths)IOSwitchboardServer
 (mesos::internal::slave)NoopResourceEstimator
 (mesos::internal::slave)Sorter (mesos::internal::master::allocator)
-Anonymous (mesos::modules)ExecutorState
 (mesos::internal::slave::state)IP (net)NotAcceptable 
(process::http)SSLTemporaryDirectoryTest
-AppcRuntimeIsolatorProcess
 (mesos::internal::slave)ExitedEvent (process)IPv4 (net)NotFound (process::http)Stack (os)
-Argv 
(os::raw)Expand (lambda::internal)IPv6 (net)NothingStandaloneMasterContender
 (mesos::master::contender)
-Array 
(JSON)Expand 0  
(lambda::internal)is_bind_expression
 lambda::internal::Partial F, Args...  (std)NotImplemented (process::http)StandaloneMasterDetector
 (mesos::master::detector)
+EnvironmentSecretIsolatorProcess
 (mesos::internal::slave)Initialize 
(mesos::internal::log::tool)NamespacesPidIsolatorProcess
 (mesos::internal::slave)Entry::Selector 
(cgroups::devices)
+Envp 
(os::raw)InMemoryAuxiliaryPropertyPlugin
 (mesos::internal::cram_md5)NanosecondsSequence 
(process)
+Accepted (process::http)EphemeralPortsAllocator
 (mesos::internal::slave)InMemoryStorage (mesos::state)Nested 
(mesos::internal::checks::runtime)SequenceProcess (process)
+AcceptingObjectApprover 
(mesos)ErrnoErrorSubprocess::IO::InputFileDescriptors
 (process)NetClsHandle 
(mesos::internal::slave)Server (process::http)
+Entry::Access (cgroups::devices)ErrnoFailure (process)integer_sequence (cpp14)NetClsHandleManager
 (mesos::internal::slave)ServiceUnavailable 
(process::http)
+Docker::Device::AccessErrorIntegerSequenceGen
 (cpp14::internal)NetClsSubsystem
 (mesos::internal::slave)SessionTracker
 (org::apache::zookeeper::server)
+Action (routing::action)Event (process)IntegerSequenceGen
 T, 0, Is... (cpp14::internal)Netlink 

[07/12] mesos-site git commit: Updated the website built from mesos SHA: 0d247c3.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/hierarchy.html
--
diff --git a/content/api/latest/c++/hierarchy.html 
b/content/api/latest/c++/hierarchy.html
index 2e85811..1ddfd69 100644
--- a/content/api/latest/c++/hierarchy.html
+++ b/content/api/latest/c++/hierarchy.html
@@ -120,9 +120,9 @@
 Cache SlaveID, Nothing 

 lambda::CallableOnce F 
 lambda::CallableOnce R(Args...)
-mesos::internal::protobuf::slave::Capabilities
-mesos::internal::protobuf::framework::Capabilities
-mesos::internal::protobuf::master::Capabilities
+mesos::internal::protobuf::master::Capabilities
+mesos::internal::protobuf::slave::Capabilities
+mesos::internal::protobuf::framework::Capabilities
 mesos::internal::capabilities::CapabilitiesProvides wrapper for the linux process capabilities interface 

 process::http::CaseInsensitiveEqual
 process::http::CaseInsensitiveHash
@@ -132,8 +132,8 @@
 Jvm::Class
 JSON::internal::ClassicLocaleThis 
object changes the current thread's locale to the default "C" locale for number 
printing purposes 
 routing::filter::basic::Classifier
-routing::filter::ip::Classifier
-routing::filter::icmp::Classifier
+routing::filter::icmp::Classifier
+routing::filter::ip::Classifier
 mesos::csi::Client
 process::ClockProvides timers 

 mesos::internal::checks::check::Command
@@ -219,8 +219,8 @@
 mesos::internal::slave::FetcherProcess::Cache::Entry
 cgroups::devices::Entry
 mesos::internal::fs::MountInfoTable::Entry
-mesos::internal::fs::MountTable::Entry
-ldcache::Entry
+ldcache::Entry
+mesos::internal::fs::MountTable::Entry
 EnumClassHash
 Jvm::Env
 Environment
@@ -510,946 +510,947 @@
 std::hash mesos::TaskState 
 std::hash mesos::TaskStatus_Reason 
 std::hash mesos::TaskStatus_Source 
-std::hash mesos::v1::AgentID 
-std::hash mesos::v1::CommandInfo::URI 
-std::hash mesos::v1::ContainerID 
-std::hash mesos::v1::ExecutorID 
-std::hash mesos::v1::FrameworkID 
-std::hash mesos::v1::Image::Type 
-std::hash mesos::v1::MachineID 
-std::hash mesos::v1::OfferID 
-std::hash mesos::v1::OperationID 
-std::hash mesos::v1::ResourceProviderID 
-std::hash mesos::v1::TaskID 
-std::hash mesos::v1::TaskState 
-std::hash mesos::v1::TaskStatus_Reason 
-std::hash mesos::v1::TaskStatus_Source 
-std::hash net::IP 
-std::hash net::IPv4 
-std::hash net::IPv6 
-std::hash Option T  
-std::hash os::WindowsFD 
-std::hash process::network::inet::Address 
-std::hash process::network::inet4::Address 
-std::hash process::network::inet6::Address 
-std::hash process::UPID 
-std::hash routing::filter::ip::PortRange 
-std::hash std::pair mesos::FrameworkID, 
mesos::ExecutorID  
-std::hash std::pair mesos::v1::FrameworkID, 
mesos::v1::ExecutorID  
-JSON::internal::HasMappedType T 
-HDFS
-process::http::authentication::JWT::Header
-mesos::internal::checks::HealthChecker
-mesos::Hook
-mesos::internal::HookManager
-mesos::internal::checks::check::Http
-mesos::internal::slave::Http
-mesos::internal::master::HttpConnection
-mesos::internal::slave::HttpConnection
-process::UPID::ID
-mesos::IDAcceptor T Used to 
filter results for API handlers 
-Docker::Image
-mesos::internal::slave::ImageInfo
-mesos::internal::slave::PosixFilesystemIsolatorProcess::Info
-routing::diagnosis::socket::Info
-mesos::internal::cram_md5::InMemoryAuxiliaryPropertyPlugin
-process::Subprocess::IO::InputFileDescriptorsFor input file descriptors a child reads from the 
read file descriptor and a parent may write to the 
write file descriptor if one is present 
-cpp14::integer_sequence T, Is 
-cpp14::internal::IntegerSequenceGen T, N, Is 

-cpp14::internal::IntegerSequenceGen T, 0, 
Is...
-mesos::python::InterpreterLockRAII 
utility class for acquiring the Python global interpreter lock 
-Interval T 

-Interval uint16_t 
-interval_bound_type
-boost::icl::interval_bound_type Interval T  

-interval_set
-IntervalSet T 
-IntervalSet prid_t 
-IntervalSet uint16_t 
-IntervalSet uint32_t 
-IntervalSet uint64_t 
-boost::icl::interval_traits Interval T  

-lambda::internal::Invoke R 
-lambda::internal::Invoke void 
-process::Subprocess::IODescribes how 
the I/O is redirected for stdin/stdout/stderr 
-mesos::slave::ContainerIO::IODescribes 
how the containerizer redirects I/O for stdin/stdout/stderr of a container 

-mesos::internal::slave::IOSwitchboardServer
-net::IP
-net::IPv4
-net::IPv6
-mesos::slave::Isolator
-mesos::internal::slave::MesosIsolator
-mesos::internal::tests::MockIsolator
-JSON::internal::IsSequence T 
-JNI
-Jvm
-process::http::authentication::JWTA JSON Web Token (JWT) implementation 
-KernelSemaphore
-DecomissionableKernelSemaphore
-LambdaTraits T 
-LambdaTraits Result(Class::*)(Args...) const  

-process::Latch
-mesos::internal::slave::Launcher
-mesos::internal::slave::LinuxLauncher
-mesos::internal::slave::SubprocessLauncher
-mesos::internal::tests::TestLauncher
-zookeeper::LeaderContender
-zookeeper::LeaderDetector
-JSON::internal::LessPrefer

[10/12] mesos-site git commit: Updated the website built from mesos SHA: 0d247c3.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/classmesos_1_1internal_1_1slave_1_1Slave-members.html
--
diff --git 
a/content/api/latest/c++/classmesos_1_1internal_1_1slave_1_1Slave-members.html 
b/content/api/latest/c++/classmesos_1_1internal_1_1slave_1_1Slave-members.html
index da57543..cfd90e4 100644
--- 
a/content/api/latest/c++/classmesos_1_1internal_1_1slave_1_1Slave-members.html
+++ 
b/content/api/latest/c++/classmesos_1_1internal_1_1slave_1_1Slave-members.html
@@ -71,7 +71,7 @@
   _run(const
 process::Future std::list bool  unschedules, const 
FrameworkInfo frameworkInfo, const ExecutorInfo executorInfo, const 
Option TaskInfo  task, const Option TaskGroupInfo  
taskGroup, const std::vector ResourceVersionUUID  
resourceVersionUuids, const Option bool  
launchExecutor)mesos::internal::slave::Slavevirtual
   _shutdownExecutor(Framework
 *framework, Executor *executor)mesos::internal::slave::Slavevirtual
   _statusUpdate(StatusUpdate
 update, const Option process::UPID  pid, const ExecutorID 
executorId, const Option process::Future ContainerStatus  
containerStatus)mesos::internal::slave::Slave
-  _statusUpdateAcknowledgement(const
 process::Future bool  future, const TaskID taskId, const 
FrameworkID frameworkId, const id::UUID uuid)mesos::internal::slave::Slave
+  _statusUpdateAcknowledgement(const
 process::Future bool  future, const TaskID taskId, const 
FrameworkID frameworkId, const UUID uuid)mesos::internal::slave::Slave
   age(double
 usage)mesos::internal::slave::Slave
   applyOperation(const
 ApplyOperationMessage message)mesos::internal::slave::Slave
   attachTaskVolumeDirectory(const
 ExecutorInfo executorInfo, const ContainerID executorContainerId, 
const Task task)mesos::internal::slave::Slave

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/classmesos_1_1internal_1_1slave_1_1Slave.html
--
diff --git 
a/content/api/latest/c++/classmesos_1_1internal_1_1slave_1_1Slave.html 
b/content/api/latest/c++/classmesos_1_1internal_1_1slave_1_1Slave.html
index cd72fdc..8791508 100644
--- a/content/api/latest/c++/classmesos_1_1internal_1_1slave_1_1Slave.html
+++ b/content/api/latest/c++/classmesos_1_1internal_1_1slave_1_1Slave.html
@@ -165,8 +165,8 @@ Public Member Functions
 
 voidstatusUpdateAcknowledgement
 (const process::UPID 
from, const SlaveID slaveId, const FrameworkID frameworkId, 
const TaskID taskId, const std::string uuid)
 
-void_statusUpdateAcknowledgement
 (const process::Future bool  
future, const TaskID taskId, const FrameworkID frameworkId, 
const id::UUID 
uuid)
-
+void_statusUpdateAcknowledgement
 (const process::Future bool  
future, const TaskID taskId, const FrameworkID frameworkId, 
const UUID uuid)
+
 voidoperationStatusAcknowledgement
 (const process::UPID 
from, const AcknowledgeOperationStatusMessage 
acknowledgement)
 
 voidexecutorLaunched
 (const FrameworkID frameworkId, const ExecutorID executorId, const 
ContainerID containerId, const process::Future Containerizer::LaunchResult
  future)
@@ -1017,7 +1017,7 @@ const http::Request
 
-
+
 
 
   
@@ -1042,7 +1042,7 @@ const http::Request
   
   
-  const id::UUID 
+  const UUID 
   uuid
 
 

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/classmesos_1_1internal_1_1tests_1_1MockSlave-members.html
--
diff --git 
a/content/api/latest/c++/classmesos_1_1internal_1_1tests_1_1MockSlave-members.html
 
b/content/api/latest/c++/classmesos_1_1internal_1_1tests_1_1MockSlave-members.html
index 9a49827..af59912 100644
--- 
a/content/api/latest/c++/classmesos_1_1internal_1_1tests_1_1MockSlave-members.html
+++ 
b/content/api/latest/c++/classmesos_1_1internal_1_1tests_1_1MockSlave-members.html
@@ -71,7 +71,7 @@
   _run(const
 process::Future std::list bool  unschedules, const 
FrameworkInfo frameworkInfo, const ExecutorInfo executorInfo, const 
Option TaskInfo  task, const Option TaskGroupInfo  
taskGroup, const std::vector ResourceVersionUUID  
resourceVersionUuids, const Option bool  
launchExecutor)mesos::internal::slave::Slavevirtual
   _shutdownExecutor(Framework
 *framework, Executor *executor)mesos::internal::slave::Slavevirtual
   _statusUpdate(StatusUpdate
 update, const Option process::UPID  pid, const ExecutorID 
executorId, const Option process::Future ContainerStatus  
containerStatus)mesos::internal::slave::Slave
-  _statusUpdateAcknowledgement(const
 process::Future bool  future, const TaskID taskId, const 
FrameworkID frameworkId, const id::UUID uuid)mesos::internal::slave::Slave
+  _statusUpdateAcknowledgement(const
 process::Future bool  future, const TaskID taskId, const 
FrameworkID frameworkId, const UUID uuid)mesos::internal::slave::Slave

[04/12] mesos-site git commit: Updated the website built from mesos SHA: 0d247c3.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/index.hhp
--
diff --git a/content/api/latest/c++/index.hhp b/content/api/latest/c++/index.hhp
index 3347ef4..814f57d 100644
--- a/content/api/latest/c++/index.hhp
+++ b/content/api/latest/c++/index.hhp
@@ -3261,6 +3261,8 @@ structstd_1_1hash_3_01mesos_1_1OperationID_01_4.html
 structstd_1_1hash_3_01mesos_1_1OperationID_01_4-members.html
 structstd_1_1hash_3_01mesos_1_1ResourceProviderID_01_4.html
 structstd_1_1hash_3_01mesos_1_1ResourceProviderID_01_4-members.html
+structstd_1_1hash_3_01mesos_1_1UUID_01_4.html
+structstd_1_1hash_3_01mesos_1_1UUID_01_4-members.html
 structstd_1_1hash_3_01mesos_1_1v1_1_1CommandInfo_1_1URI_01_4.html
 structstd_1_1hash_3_01mesos_1_1v1_1_1CommandInfo_1_1URI_01_4-members.html
 structstd_1_1hash_3_01mesos_1_1v1_1_1ContainerID_01_4.html

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/namespacemembers_0x63.html
--
diff --git a/content/api/latest/c++/namespacemembers_0x63.html 
b/content/api/latest/c++/namespacemembers_0x63.html
index fc31f7d..0c87dab 100644
--- a/content/api/latest/c++/namespacemembers_0x63.html
+++ b/content/api/latest/c++/namespacemembers_0x63.html
@@ -532,7 +532,7 @@
 , mesos::internal::tests::internal
 
 createOperation()
-: mesos::internal::protobuf
+: mesos::internal::protobuf
 
 createOperationStatus()
 : mesos::internal::protobuf
@@ -567,7 +567,7 @@
 : mesos::internal::slave::paths
 
 createResourceVersions()
-: mesos::internal::protobuf
+: mesos::internal::protobuf
 
 createSandboxDirectory()
 : mesos::internal::slave::paths
@@ -613,7 +613,7 @@
 : mesos::internal::protobuf::maintenance
 
 createUpdateOperationStatusMessage()
-: mesos::internal::protobuf
+: mesos::internal::protobuf
 
 createVolumeFromDockerImage()
 : mesos::internal::tests::common

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/namespacemembers_0x70.html
--
diff --git a/content/api/latest/c++/namespacemembers_0x70.html 
b/content/api/latest/c++/namespacemembers_0x70.html
index 95e3e76..dfd5628 100644
--- a/content/api/latest/c++/namespacemembers_0x70.html
+++ b/content/api/latest/c++/namespacemembers_0x70.html
@@ -157,7 +157,7 @@
 : mesos::internal::slave::paths
 
 parseResourceVersions()
-: mesos::internal::protobuf
+: mesos::internal::protobuf
 
 parseSandboxPath()
 : mesos::internal::slave::containerizer::paths

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/namespacemembers_func_0x63.html
--
diff --git a/content/api/latest/c++/namespacemembers_func_0x63.html 
b/content/api/latest/c++/namespacemembers_func_0x63.html
index 61ea2ad..5b9e202 100644
--- a/content/api/latest/c++/namespacemembers_func_0x63.html
+++ b/content/api/latest/c++/namespacemembers_func_0x63.html
@@ -419,7 +419,7 @@
 , mesos::internal::tests::internal
 
 createOperation()
-: mesos::internal::protobuf
+: mesos::internal::protobuf
 
 createOperationStatus()
 : mesos::internal::protobuf
@@ -453,7 +453,7 @@
 : mesos::internal::slave::paths
 
 createResourceVersions()
-: mesos::internal::protobuf
+: mesos::internal::protobuf
 
 createSandboxDirectory()
 : mesos::internal::slave::paths
@@ -500,7 +500,7 @@
 : mesos::internal::protobuf::maintenance
 
 createUpdateOperationStatusMessage()
-: mesos::internal::protobuf
+: mesos::internal::protobuf
 
 createVolumeFromDockerImage()
 : mesos::internal::tests::internal

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/namespacemembers_func_0x70.html
--
diff --git a/content/api/latest/c++/namespacemembers_func_0x70.html 
b/content/api/latest/c++/namespacemembers_func_0x70.html
index c79d335..127e8af 100644
--- a/content/api/latest/c++/namespacemembers_func_0x70.html
+++ b/content/api/latest/c++/namespacemembers_func_0x70.html
@@ -150,7 +150,7 @@
 : mesos::internal::slave::paths
 
 parseResourceVersions()
-: mesos::internal::protobuf
+: mesos::internal::protobuf
 
 parseSandboxPath()
 : mesos::internal::slave::containerizer::paths

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/namespacemesos_1_1internal_1_1protobuf.html
--
diff --git a/content/api/latest/c++/namespacemesos_1_1internal_1_1protobuf.html 
b/content/api/latest/c++/namespacemesos_1_1internal_1_1protobuf.html
index 3e39f37..08120a8 100644
--- a/content/api/latest/c++/namespacemesos_1_1internal_1_1protobuf.html
+++ b/content/api/latest/c++/namespacemesos_1_1internal_1_1protobuf.html
@@ -93,10 +93,10 @@ Functions
 
 

[08/12] mesos-site git commit: Updated the website built from mesos SHA: 0d247c3.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/functions_vars_0x72.html
--
diff --git a/content/api/latest/c++/functions_vars_0x72.html 
b/content/api/latest/c++/functions_vars_0x72.html
index 9e73006..41d08f1 100644
--- a/content/api/latest/c++/functions_vars_0x72.html
+++ b/content/api/latest/c++/functions_vars_0x72.html
@@ -297,11 +297,11 @@
 , mesos::internal::master::Metrics
 
 resourceVersion
-: mesos::internal::ResourceProviderMessage::UpdateState
-, mesos::internal::slave::ResourceProvider
+: mesos::internal::ResourceProviderMessage::UpdateState
+, mesos::internal::slave::ResourceProvider
 
 resourceVersions
-: mesos::internal::master::Slave
+: mesos::internal::master::Slave
 
 response
 : process::HttpEvent



[05/12] mesos-site git commit: Updated the website built from mesos SHA: 0d247c3.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/index.hhk
--
diff --git a/content/api/latest/c++/index.hhk b/content/api/latest/c++/index.hhk
index bddb882..59b7c58 100644
--- a/content/api/latest/c++/index.hhk
+++ b/content/api/latest/c++/index.hhk
@@ -359,7 +359,7 @@
 
   
   
-  
+  
   
   
   
@@ -917,6 +917,7 @@
 
 
 
+
 
 
 
@@ -3069,10 +3070,10 @@
 
 
   
-  
+  
   
-
-
+
+
   
   
   
@@ -3123,10 +3124,10 @@
 
 
   
-  
+  
   
-
-
+
+
   
   
   
@@ -3206,10 +3207,10 @@
 
 
   
-  
+  
   
-
-
+
+
   
   
   
@@ -6328,7 +6329,7 @@
 
 
   
-  
+  
   
   
 
@@ -10567,8 +10568,8 @@
 
 
 
-
-
+
+
 
 
 
@@ -10939,7 +10940,7 @@
 
 
 
-
+
 
 
 
@@ -10951,7 +10952,7 @@
 
 
 
-
+
 
 
 
@@ -10964,11 +10965,11 @@
 
 
 
-
-
+
+
 
 
-
+
 
 
 
@@ -11188,13 +11189,13 @@
 
 
 
-
+
 
-
+
 
 
 
-
+
 
 
 
@@ -11205,7 +11206,7 @@
 
 
 
-
+
 
   
   
@@ -11263,8 +11264,8 @@
   
   
 
-
-
+
+
 
   
   
@@ -12592,10 +12593,10 @@
   
 
 
-
+
 
-
-
+
+
 
   
   
@@ -12634,7 +12635,7 @@
 
 
 
-
+
 
 
 
@@ -15594,24 +15595,18 @@
 
   
   
-  
-
-
-  
   
+  
   
-
-
-  
-  
-  
+
 
-
-
   
+  
+  
   
-  
+  
   
+
 
 
   
@@ -16055,12 +16050,12 @@
   
   
   
-  
+  
   
-
-
-
-
+
+
+
+
   
   
   
@@ -16069,7 +16064,7 @@
 
 
   
-  
+  
   
   
   
@@ -16241,6 +16236,7 @@
 
 
 
+
 
 
 
@@ -17350,10 +17346,10 @@
 
   
   
-  
+  
   
-
-
+
+
   
   
   
@@ -17837,12 +17833,9 @@
 
   
   
-  
   
-  
-
-
-  
+  
+  
   
   
   
@@ -18166,11 +18159,11 @@
   
   
   
-
 
+
 
-
 
+
   
   
   
@@ -18521,8 +18514,8 @@
 
 
 
-
 
+
 
 
 
@@ -18770,8 +18763,8 @@
 
 
 
-
 
+
   
   
   
@@ -19033,8 +19026,8 @@
   
   
 
-
 
+
 
   
   
@@ -19426,8 +19419,8 @@
   
   
   
-
 
+
 
 
   
@@ -19482,8 +19475,8 @@
   
   
   
-
 
+
 
 
   
@@ -19517,36 +19510,36 @@
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
@@ -19566,8 +19559,8 @@
   
   
   
-
 
+
 
 
   
@@ -19594,8 +19587,8 @@
   
   
   
-
 
+
 
 
   
@@ -19615,29 +19608,29 @@
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
   
   
-
 
+
 
 
   
@@ -19907,9 +19900,9 @@
 
 
 
-
+
 
-
+
 
 
 
@@ -19917,7 +19910,7 @@
 
 
 
-
+
 
 
 
@@ -19933,7 +19926,7 @@
 
 
 
-
+
 
   
   
@@ -20903,7 +20896,7 @@
 
   
   
-  
+  
   
   
   
@@ -20963,12 +20956,12 @@
 
   
   
-  
+  
   
-
-
+
+
   
-  
+  
   
   
   
@@ -21016,6 +21009,7 @@
 
 
 
+
 
 
 
@@ -21092,11 +21086,8 @@
 
   
   
-  
-
-
-  
   
+  
   
   
 
@@ -21292,8 +21283,8 @@
   
   
 
-
 
+
 
 
 
@@ -21629,38 +21620,41 @@
   
   
   
+  
+
+
+  
   
-  
-  
+  
+
+
+  
   
   
   
 
 
-
   
   
   
-  
   
-
-
+
+
   
+  
   
-  
-
-
-  
   
   
+
 
-
   
   
   
   
   
   
+  
+  
   
 
 
@@ -21671,97 +21665,103 @@
 
   
   
+  
+  
   
-
 
+
   
   
   
-
 
+
   
   
-  
-  
-  
-  
   
+
 
-
   
   
+  
+
+
+  
+  
+  
   
   
   
+  
+
+
+  
   
   

[09/12] mesos-site git commit: Updated the website built from mesos SHA: 0d247c3.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/functions_0x72.html
--
diff --git a/content/api/latest/c++/functions_0x72.html 
b/content/api/latest/c++/functions_0x72.html
index 226afc7..795be32 100644
--- a/content/api/latest/c++/functions_0x72.html
+++ b/content/api/latest/c++/functions_0x72.html
@@ -663,7 +663,7 @@
 , mesos::python::ProxyScheduler
 
 ResourceProvider()
-: mesos::internal::slave::ResourceProvider
+: mesos::internal::slave::ResourceProvider
 
 resourceProvider
 : mesos::internal::protobuf::slave::Capabilities
@@ -680,52 +680,42 @@
 resourceRequest()
 : mesos::internal::master::Master
 
-resources()
-: mesos::internal::slave::Containerizer
-
-Resources()
-: mesos::v1::Resources
-
-resources
-: mesos::internal::slave::PosixFilesystemIsolatorProcess::Info
-
 Resources()
-: mesos::Resources
+: mesos::Resources
+, mesos::v1::Resources
 
 resources
-: mesos::UnavailableResources
-, mesos::internal::master::allocator::DRFSorter::Node::Allocation
+: mesos::internal::master::allocator::DRFSorter::Node::Allocation
 
 Resources()
-: mesos::v1::Resources
+: mesos::v1::Resources
 
 resources
 : mesos::internal::slave::Flags
 
 Resources()
-: mesos::v1::Resources
-
-resources()
-: mesos::internal::slave::NvidiaGpuAllocator
-
-Resources()
-: mesos::Resources
+: mesos::Resources
 
 resources
-: mesos::internal::slave::state::ResourcesState
+: mesos::internal::slave::state::State
+, mesos::internal::slave::state::ResourcesState
+, mesos::internal::slave::NvidiaGpuAllocator
 
 Resources()
-: mesos::v1::Resources
+: mesos::Resources
+, mesos::v1::Resources
 
-resources
-: mesos::internal::slave::state::State
+resources()
+: mesos::internal::slave::Containerizer
+, mesos::internal::slave::PosixFilesystemIsolatorProcess::Info
+, mesos::UnavailableResources
 
 resources_offered_or_allocated
 : mesos::internal::master::allocator::internal::Metrics
 
 resources_percent
-: mesos::internal::slave::Metrics
-, mesos::internal::master::Metrics
+: mesos::internal::master::Metrics
+, mesos::internal::slave::Metrics
 
 resources_revocable_percent
 : mesos::internal::master::Metrics
@@ -741,8 +731,8 @@
 
 resources_total
 : mesos::internal::master::Metrics
-, mesos::internal::master::allocator::internal::Metrics
 , mesos::internal::slave::Metrics
+, mesos::internal::master::allocator::internal::Metrics
 
 resources_used
 : mesos::internal::slave::Metrics
@@ -752,23 +742,20 @@
 : mesos::internal::slave::state::ResourcesState
 
 resourceVersion
-: mesos::internal::slave::ResourceProvider
-, mesos::internal::ResourceProviderMessage::UpdateState
+: mesos::internal::ResourceProviderMessage::UpdateState
+, mesos::internal::slave::ResourceProvider
 
 resourceVersions
-: mesos::internal::master::Slave
+: mesos::internal::master::Slave
 
 response
-: process::HttpEvent
+: process::grpc::RpcResult
 T 
 
 Response()
 : process::http::Response
 
 response
-: process::grpc::RpcResult
 T 
-
-Response()
-: process::http::Response
+: process::HttpEvent
 
 ResponseDecoder()
 : process::ResponseDecoder
@@ -782,58 +769,59 @@
 
 result_type
 : std::hash
 cgroups::memory::pressure::Level 
+, std::hash
 process::UPID 
+, std::hash
 Option T  
+, std::hash
 mesos::v1::TaskStatus_Reason 
+, std::hash
 mesos::v1::TaskState 
+, std::hash
 mesos::v1::ContainerID 
+, std::hash
 mesos::CommandInfo_URI 
+, std::hash
 mesos::Image::Type 
+, std::hash
 mesos::ExecutorID 
 , LambdaTraits
 Result(Class::*)(Args...) const  
-, std::hash
 mesos::internal::slave::DockerVolume 
-, std::hash
 mesos::v1::TaskStatus_Source 
+, Overload
 F 
+, Overload F, Fs 

 , std::hash
 id::UUID 
-, std::hash
 net::IP 
+, std::hash
 mesos::TaskState 
 , std::hash
 mesos::v1::OperationID 
-, std::hash
 mesos::TaskID 
-, std::hash
 mesos::OfferID 
-, std::hash
 mesos::v1::OfferID 
-, std::hash
 routing::filter::ip::PortRange 
-, Overload F, Fs 

+, std::hash
 os::WindowsFD 
+, std::hash
 process::network::inet::Address 
 , std::hash
 mesos::v1::ResourceProviderID 
-, std::hash
 Option T  
-, std::hash
 mesos::v1::TaskState 
-, std::hash
 process::UPID 
-, std::hash
 mesos::CommandInfo_URI 
 , std::hash
 mesos::v1::MachineID 
 , std::hash
 std::pair mesos::v1::FrameworkID, mesos::v1::ExecutorID  
-, std::hash
 mesos::v1::AgentID 
-, std::hash
 mesos::ExecutorID 
+, std::hash
 mesos::v1::OfferID 
 , std::hash
 mesos::v1::CommandInfo::URI 
+, std::hash
 mesos::OfferID 
+, std::hash
 net::IP 
 , std::hash
 mesos::TaskStatus_Source 
-, std::hash
 mesos::Image::Type 
 , std::hash
 mesos::MachineID 
+, std::hash
 mesos::SlaveID 
 , std::hash
 mesos::v1::Image::Type 
-, std::hash
 mesos::v1::ContainerID 
-, std::hash
 mesos::v1::TaskStatus_Reason 
+, std::hash
 mesos::v1::TaskStatus_Source 
 , std::hash
 mesos::v1::TaskID 
+, std::hash
 routing::filter::ip::PortRange 
+, std::hash
 mesos::internal::slave::DockerVolume 
 , std::hash
 mesos::internal::log::Metadata_Status 
-, 

[06/12] mesos-site git commit: Updated the website built from mesos SHA: 0d247c3.

2018-03-06 Thread git-site-role
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53f3d240/content/api/latest/c++/index.hhc
--
diff --git a/content/api/latest/c++/index.hhc b/content/api/latest/c++/index.hhc
index cc0f7c7..706bc6a 100644
--- a/content/api/latest/c++/index.hhc
+++ b/content/api/latest/c++/index.hhc
@@ -2090,7 +2090,7 @@
 
   
 
-
+
 
 
 
@@ -2098,7 +2098,7 @@
 
 
 
-
+
 
 
 
@@ -2108,7 +2108,7 @@
 
 
 
-
+
 
 
 
@@ -2123,14 +2123,14 @@
 
 
 
-
+
 
 
 
 
 
 
-
+
 
 
 
@@ -2325,8 +2325,8 @@
 
 
 
-
-
+
+
 
 
 
@@ -3799,7 +3799,7 @@
 
 
 
-
+
 
 
 
@@ -3959,12 +3959,12 @@
 
   
 
-
+
 
 
 
-
-
+
+
 
 
   
@@ -4662,8 +4662,8 @@
   
 
 
-
-
+
+
 
 
   
@@ -7797,6 +7797,12 @@
 
 
 
+  
+
+
+
+
+
   
 
 
@@ -9039,9 +9045,9 @@
 
 
 
+
 
 
-
 
 
 
@@ -9051,8 +9057,8 @@
 
 
 
-
 
+
 
 
 
@@ -9162,8 +9168,8 @@
 
 
 
-
 
+
 
 
 
@@ -9609,6 +9615,7 @@
 
 
 
+
 
 
 
@@ -9829,6 +9836,8 @@
 
 
 
+
+
 
   
   
@@ -9849,8 +9858,6 @@
 
 
   
-
-
 
   
   
@@ -10146,8 +10153,8 @@
 
 
 
-
 
+
 
 
 
@@ -10158,15 +10165,15 @@
 
 
   
+
+  
+  
+  
 
   
   
   
   
-
-  
-  
-  
 
 
 
@@ -10276,13 +10283,13 @@
   
   
 
-
-
 
+
 
   
   
   
+
 
 
 
@@ -10297,11 +10304,6 @@
 
 
 
-
-  
-  
-  
-
 
   
   
@@ -10309,6 +10311,11 @@
   
   
   
+
+  
+  
+  
+
 
   
   
@@ -10379,11 +10386,11 @@
   
 
   
-  
+  
   
 
   
-  
+  
   
 
 
@@ -10506,14 +10513,6 @@
   
   
   
-
-  
-  
-  
-
-  
-  
-  
 
   
   
@@ -10574,13 +10573,13 @@
   
   
   
-
+
   
-  
+  
   
-
+
   
-  
+  
   
 
   
@@ -10790,6 +10789,14 @@
   
   
   
+
+  
+  
+  
+
+  
+  
+  
 
   
   
@@ -10857,27 +10864,27 @@
   
   
   
-
 
+
 
 
   
   
   
-
 
-
-
+
 
+
+
 
-
-  
-  
-  
 
   
   
   
+
+  
+  
+  
 
 
 
@@ -10895,8 +10902,8 @@
 
 
 
-
 
+
 
 
 
@@ -17990,6 +17997,12 @@
 
 
 
+  
+
+
+
+
+
   
   
   
@@ -18440,9 +18453,9 @@
   
   
   
-  
+  
   
-  
+  
   
   
   
@@ -18452,7 +18465,7 @@
   
   
   
-  
+  
   
   
   
@@ -18469,7 +18482,7 @@
   
   
   
-  
+  
   
   
 
@@ -21007,7 +21020,7 @@
   
   
 
-
+
 
 
 
@@ -21015,7 +21028,7 @@
 
 
 
-
+
 
 
 
@@ -21025,7 +21038,7 @@
 
 
 
-
+
 
 
 
@@ -21040,14 +21053,14 @@
 
 
 
-
+
 
 
 
 
 
 
-
+
 
 
 
@@ -21253,8