You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2017/07/09 04:12:01 UTC

[3/3] mesos git commit: Added MESOS-7755 to the upgrades guide and the CHANGELOG.

Added MESOS-7755 to the upgrades guide and the CHANGELOG.

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


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

Branch: refs/heads/master
Commit: d345ebccf19387d75d67c99f8f6e72a301f55bc3
Parents: 9e8e013
Author: Benjamin Bannier <be...@mesosphere.io>
Authored: Sat Jul 8 20:50:26 2017 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Sat Jul 8 20:50:26 2017 -0700

----------------------------------------------------------------------
 CHANGELOG        |  9 +++++++++
 docs/upgrades.md | 12 +++++++++---
 2 files changed, 18 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/d345ebcc/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index e59c3e7..05b149c 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -19,6 +19,15 @@ Deprecations/Removals:
   * [MESOS-7477] - The agent `--allowed_capabilities` flag is
     deprecated in favor of `--effective_capabilities`
 
+Additional API Changes:
+
+  * [MESOS-7755] The interpretation of the optional resource argument
+    passed in `Allocator::updateSlave` was changed from the total
+    amount of oversubscribed resources on the agent to the new total
+    resources (both revocable and non-revocable) on the agent. Custom
+    allocator implementation should be changed to interpretation of the
+    passed value as a total before updating.
+
 
 Release Notes - Mesos - Version 1.3.1 (WIP)
 -------------------------------------------

http://git-wip-us.apache.org/repos/asf/mesos/blob/d345ebcc/docs/upgrades.md
----------------------------------------------------------------------
diff --git a/docs/upgrades.md b/docs/upgrades.md
index 5511880..dda55f9 100644
--- a/docs/upgrades.md
+++ b/docs/upgrades.md
@@ -70,6 +70,7 @@ We categorize the changes as follows:
 
   <td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Module API-->
     <ul style="padding-left:10px;">
+      <li>C <a href="1-4-x-allocator-update-slave">Changed semantics of Allocator::updateSlave</a></li>
     </ul>
   </td>
 
@@ -329,9 +330,14 @@ We categorize the changes as follows:
 
 <a name="1-4-x-agent-capabilities-flags"></a>
 
-* The agent `--effective_capabilities` flag has been added to specify the default effective capability set for tasks.
-* The agent `--bounding_capabilities` flag has been added to specify the default bounding capability set for tasks.
-* The agent `--allowed-capabilities` flag has been deprecated in favor of `--effective_capabilities`.
+* Changes to capability-related agent flags:
+  * The agent `--effective_capabilities` flag has been added to specify the default effective capability set for tasks.
+  * The agent `--bounding_capabilities` flag has been added to specify the default bounding capability set for tasks.
+  * The agent `--allowed-capabilities` flag has been deprecated in favor of `--effective_capabilities`.
+
+<a name="1-4-x-allocator-update-slave"></a>
+
+* The semantics of the optional resource argument passed in `Allocator::updateSlave` was change. While previously the passed value denoted a new amount of oversubscribed (revocable) resources on the agent, it now denotes the new amount of total resources on the agent. This requires custom allocator implementations to update their interpretation of the passed value.
 
 ## Upgrading from 1.2.x to 1.3.x ##