You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jp...@apache.org on 2017/10/15 22:48:52 UTC

[8/9] mesos git commit: Printed resource limitations from mesos-execute.

Printed resource limitations from mesos-execute.

If mesos-execute received a status update containing a resource
limitation, print the corresponding resource.

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


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

Branch: refs/heads/master
Commit: 08d94682028111ce016481caa859e79c991120ca
Parents: 6b70393
Author: James Peach <jp...@apache.org>
Authored: Sun Oct 15 15:21:56 2017 -0700
Committer: James Peach <jp...@apache.org>
Committed: Sun Oct 15 15:21:56 2017 -0700

----------------------------------------------------------------------
 src/cli/execute.cpp | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/08d94682/src/cli/execute.cpp
----------------------------------------------------------------------
diff --git a/src/cli/execute.cpp b/src/cli/execute.cpp
index 78b62a6..f5d4bc5 100644
--- a/src/cli/execute.cpp
+++ b/src/cli/execute.cpp
@@ -710,6 +710,10 @@ protected:
     if (status.has_check_status()) {
       cout << "  check status: " << status.check_status() << endl;
     }
+    if (status.has_limitation() && !status.limitation().resources().empty()) {
+      cout << "  resource limit violation: "
+           << status.limitation().resources() << endl;
+    }
 
     if (status.has_uuid()) {
       Call call;