You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2013/11/13 00:50:10 UTC

[1/2] git commit: Added a note about the reliability of kill task requests.

Updated Branches:
  refs/heads/master f45214ab8 -> 251656f77


Added a note about the reliability of kill task requests.


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

Branch: refs/heads/master
Commit: 251656f77927fc294703019717bb9d3367134def
Parents: 2e45578
Author: Benjamin Mahler <bm...@twitter.com>
Authored: Tue Nov 12 15:49:34 2013 -0800
Committer: Benjamin Mahler <bm...@twitter.com>
Committed: Tue Nov 12 15:50:06 2013 -0800

----------------------------------------------------------------------
 include/mesos/scheduler.hpp                        | 3 ++-
 src/java/src/org/apache/mesos/SchedulerDriver.java | 3 ++-
 src/python/src/mesos.py                            | 5 +++--
 3 files changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/251656f7/include/mesos/scheduler.hpp
----------------------------------------------------------------------
diff --git a/include/mesos/scheduler.hpp b/include/mesos/scheduler.hpp
index fa1ffe8..380e087 100644
--- a/include/mesos/scheduler.hpp
+++ b/include/mesos/scheduler.hpp
@@ -253,7 +253,8 @@ public:
    * Kills the specified task. Note that attempting to kill a task is
    * currently not reliable. If, for example, a scheduler fails over
    * while it was attempting to kill a task it will need to retry in
-   * the future (these semantics may be changed in the future).
+   * the future. Likewise, if unregistered / disconnected, the request
+   * will be dropped (these semantics may be changed in the future).
    */
   virtual Status killTask(const TaskID& taskId) = 0;
 

http://git-wip-us.apache.org/repos/asf/mesos/blob/251656f7/src/java/src/org/apache/mesos/SchedulerDriver.java
----------------------------------------------------------------------
diff --git a/src/java/src/org/apache/mesos/SchedulerDriver.java b/src/java/src/org/apache/mesos/SchedulerDriver.java
index 93aaa54..5b0ca39 100644
--- a/src/java/src/org/apache/mesos/SchedulerDriver.java
+++ b/src/java/src/org/apache/mesos/SchedulerDriver.java
@@ -109,7 +109,8 @@ public interface SchedulerDriver {
    * Kills the specified task. Note that attempting to kill a task is
    * currently not reliable. If, for example, a scheduler fails over
    * while it was attempting to kill a task it will need to retry in
-   * the future (these semantics may be changed in the future).
+   * the future Likewise, if unregistered / disconnected, the request
+   * will be dropped (these semantics may be changed in the future).
    */
   Status killTask(TaskID taskId);
 

http://git-wip-us.apache.org/repos/asf/mesos/blob/251656f7/src/python/src/mesos.py
----------------------------------------------------------------------
diff --git a/src/python/src/mesos.py b/src/python/src/mesos.py
index 546a07a..a2fc0e9 100644
--- a/src/python/src/mesos.py
+++ b/src/python/src/mesos.py
@@ -207,8 +207,9 @@ class SchedulerDriver(object):
     """
       Kills the specified task. Note that attempting to kill a task is
       currently not reliable.  If, for example, a scheduler fails over while
-      it was attempting to kill a task it will need to retry in the future
-      (these semantics may be changed in the future).
+      it was attempting to kill a task it will need to retry in the future.
+      Likewise, if unregistered / disconnected, the request will be dropped
+      dropped (these semantics may be changed in the future).
     """
 
   def declineOffer(self, offerId, filters=None):


[2/2] git commit: Fixed typos and errors in the Log Javadoc.

Posted by bm...@apache.org.
Fixed typos and errors in the Log Javadoc.


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

Branch: refs/heads/master
Commit: 2e45578b3a63e4445c8266522c44fff1e0916fc8
Parents: f45214a
Author: Benjamin Mahler <bm...@twitter.com>
Authored: Tue Nov 12 14:54:30 2013 -0800
Committer: Benjamin Mahler <bm...@twitter.com>
Committed: Tue Nov 12 15:50:06 2013 -0800

----------------------------------------------------------------------
 src/java/src/org/apache/mesos/Log.java | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/2e45578b/src/java/src/org/apache/mesos/Log.java
----------------------------------------------------------------------
diff --git a/src/java/src/org/apache/mesos/Log.java b/src/java/src/org/apache/mesos/Log.java
index 27e687c..fec3ad4 100644
--- a/src/java/src/org/apache/mesos/Log.java
+++ b/src/java/src/org/apache/mesos/Log.java
@@ -59,7 +59,7 @@ public class Log {
     }
 
     /**
-     * Returns an "identity" off this position, useful for serializing
+     * Returns an "identity" of this position, useful for serializing
      * to logs or across communication mediums.
      */
     public byte[] identity() {
@@ -75,7 +75,7 @@ public class Log {
       return bytes;
     }
 
-    /* A Position is (and should only) get invoked by the underlying JNI. */
+    /* A Position is (and should only be) invoked by the underlying JNI. */
     private Position(long value) {
       this.value = value;
     }
@@ -91,7 +91,7 @@ public class Log {
     public final Position position;
     public final byte[] data;
 
-    /* An Entry is (and should only) get invoked by the underlying JNI. */
+    /* An Entry is (and should only be) invoked by the underlying JNI. */
     private Entry(Position position, byte[] data) {
       this.position = position;
       this.data = data;
@@ -185,16 +185,8 @@ public class Log {
     }
 
     /**
-     * Attepts to read from the log between the specified positions
-     * (inclusive). If either of the positions are invalid, a
-     * WriterFailedException will get thrown. Unfortunately, this will
-     * also get thrown in other circumstances (e.g., disk failure) and
-     * therefore it is currently impossible to tell these two cases
-     * apart.
-     *
-     * <p>TODO(benh): Throw both OperationFailedException and
-     * WriterFailedException to differentiate the need for a new
-     * writer from a bad position, or a bad disk, etc.
+     * Attepts to append to the log with the specified data returning
+     * the new end position of the log if successful.
      */
     public native Position append(byte[] data, long timeout, TimeUnit unit)
       throws TimeoutException, WriterFailedException;