This is an automated email from the ASF dual-hosted git repository.

mzhu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 4d4e092dbf895e21582fc57d4577e8b34bc85843
Author: Meng Zhu <[email protected]>
AuthorDate: Thu May 23 16:31:33 2019 +0200

    Clarified a comment regarding role `reservationScalarQuantities`.
    
    Review: https://reviews.apache.org/r/70706
---
 src/master/allocator/mesos/hierarchical.hpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/master/allocator/mesos/hierarchical.hpp 
b/src/master/allocator/mesos/hierarchical.hpp
index 7e4f30d..71a9656 100644
--- a/src/master/allocator/mesos/hierarchical.hpp
+++ b/src/master/allocator/mesos/hierarchical.hpp
@@ -113,7 +113,9 @@ struct Role
   hashset<FrameworkID> frameworks;
 
   // Aggregated reserved scalar resource quantities on all agents tied to this
-  // role, if any. Note that non-scalar resources, such as ports, are excluded.
+  // role, if any. This includes both its own reservations as well as
+  // reservations of any of its subroles (i.e. it is hierarchical aware).
+  // Note that non-scalar resources, such as ports, are excluded.
   ResourceQuantities reservationScalarQuantities;
 
   bool isEmpty() const

Reply via email to