You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by al...@apache.org on 2017/10/17 00:44:21 UTC

[02/14] mesos git commit: Logged when allocator cannot apply offer operation.

Logged when allocator cannot apply offer operation.

An offer apply operation might fail, and it is
helpful to see the failure in verbose logs.

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


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

Branch: refs/heads/master
Commit: 570e5ccfc4b54f620b29fbe2d1a8cd7a91669199
Parents: 6b898b5
Author: Alexander Rukletsov <al...@apache.org>
Authored: Fri Oct 6 15:32:20 2017 -0700
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Mon Oct 16 17:02:47 2017 -0700

----------------------------------------------------------------------
 src/master/allocator/mesos/hierarchical.cpp | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/570e5ccf/src/master/allocator/mesos/hierarchical.cpp
----------------------------------------------------------------------
diff --git a/src/master/allocator/mesos/hierarchical.cpp b/src/master/allocator/mesos/hierarchical.cpp
index 2213130..4453074 100644
--- a/src/master/allocator/mesos/hierarchical.cpp
+++ b/src/master/allocator/mesos/hierarchical.cpp
@@ -919,6 +919,8 @@ Future<Nothing> HierarchicalAllocatorProcess::updateAvailable(
   //   where A = allocate, R = reserve, U = updateAvailable
   Try<Resources> updatedAvailable = slave.available().apply(operations);
   if (updatedAvailable.isError()) {
+    VLOG(1) << "Failed to update available resources on agent " << slaveId
+            << ": " << updatedAvailable.error();
     return Failure(updatedAvailable.error());
   }