You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by an...@apache.org on 2016/06/22 01:37:07 UTC

mesos git commit: Made the long lived framework abort on receiving an `ERROR` event.

Repository: mesos
Updated Branches:
  refs/heads/master 9497d6603 -> e01a6b13c


Made the long lived framework abort on receiving an `ERROR` event.

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


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

Branch: refs/heads/master
Commit: e01a6b13cb37cc6c16d17c7f45e52232adf6e0f1
Parents: 9497d66
Author: Anand Mazumdar <an...@apache.org>
Authored: Tue Jun 21 18:36:18 2016 -0700
Committer: Anand Mazumdar <an...@apache.org>
Committed: Tue Jun 21 18:36:18 2016 -0700

----------------------------------------------------------------------
 src/examples/long_lived_framework.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/e01a6b13/src/examples/long_lived_framework.cpp
----------------------------------------------------------------------
diff --git a/src/examples/long_lived_framework.cpp b/src/examples/long_lived_framework.cpp
index fa92318..7c57eb5 100644
--- a/src/examples/long_lived_framework.cpp
+++ b/src/examples/long_lived_framework.cpp
@@ -213,7 +213,7 @@ protected:
         }
 
         case Event::ERROR: {
-          LOG(ERROR) << "Error: " << event.error().message();
+          EXIT(EXIT_FAILURE) << "Error: " << event.error().message();
           break;
         }