tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hit...@apache.org
Subject [1/2] git commit: TEZ-611. Should throw SessionNotRunning if session has not been started or has been stopped. (gunther via hitesh)
Date Mon, 18 Nov 2013 23:16:11 GMT
Updated Branches:
  refs/heads/master ea779ff89 -> 8f8b66012


TEZ-611. Should throw SessionNotRunning if session has not been started or has been stopped.
(gunther via hitesh)


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

Branch: refs/heads/master
Commit: cf6e7dedd71bd6a841efbf69b78572fc4ec3a4a8
Parents: ea779ff
Author: Hitesh Shah <hitesh@apache.org>
Authored: Mon Nov 18 15:14:55 2013 -0800
Committer: Hitesh Shah <hitesh@apache.org>
Committed: Mon Nov 18 15:14:55 2013 -0800

----------------------------------------------------------------------
 tez-api/src/main/java/org/apache/tez/client/TezSession.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tez/blob/cf6e7ded/tez-api/src/main/java/org/apache/tez/client/TezSession.java
----------------------------------------------------------------------
diff --git a/tez-api/src/main/java/org/apache/tez/client/TezSession.java b/tez-api/src/main/java/org/apache/tez/client/TezSession.java
index 4e06eca..5c8ab67 100644
--- a/tez-api/src/main/java/org/apache/tez/client/TezSession.java
+++ b/tez-api/src/main/java/org/apache/tez/client/TezSession.java
@@ -127,9 +127,9 @@ public class TezSession {
   public synchronized DAGClient submitDAG(DAG dag)
       throws TezException, IOException {
     if (!sessionStarted) {
-      throw new TezUncheckedException("Session not started");
+      throw new SessionNotRunning("Session not started");
     } else if (sessionStopped) {
-      throw new TezUncheckedException("Session stopped");
+      throw new SessionNotRunning("Session stopped");
     }
 
     String dagId;


Mime
View raw message