Repository: mesos
Updated Branches:
  refs/heads/master 66e358cab -> 82a631911


Added error message in tests for orphaned containers.

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


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

Branch: refs/heads/master
Commit: 82a631911a81cfe076f0bb9b0a7ae7a297ffa17f
Parents: 66e358c
Author: Andrei Budnik <abud...@mesosphere.com>
Authored: Fri Jan 5 10:11:03 2018 +0100
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Fri Jan 5 10:11:03 2018 +0100

----------------------------------------------------------------------
 src/tests/cluster.cpp | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/82a63191/src/tests/cluster.cpp
----------------------------------------------------------------------
diff --git a/src/tests/cluster.cpp b/src/tests/cluster.cpp
index f964bf0..05bde60 100644
--- a/src/tests/cluster.cpp
+++ b/src/tests/cluster.cpp
@@ -634,6 +634,11 @@ Slave::~Slave()
       containerizer->destroy(containerId);
 
       AWAIT(wait);
+
+      if (!wait.isReady()) {
+        LOG(ERROR) << "Failed to destroy container " << containerId << ": "
+                   << (wait.isFailed() ? wait.failure() : "discarded");
+      }
     }
 
     containers = containerizer->containers();

Reply via email to