ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbrodets...@apache.org
Subject ambari git commit: AMBARI-13028. Need more informative error message on set-current.(vbrodetskyi)
Date Tue, 08 Sep 2015 08:50:47 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk bfba14cbd -> 1757b8591


AMBARI-13028. Need more informative error message on set-current.(vbrodetskyi)


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

Branch: refs/heads/trunk
Commit: 1757b859125ea0bf9c8fc4d683e9567e73aa537e
Parents: bfba14c
Author: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Authored: Tue Sep 8 11:51:17 2015 +0300
Committer: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Committed: Tue Sep 8 11:51:17 2015 +0300

----------------------------------------------------------------------
 .../ClusterStackVersionResourceProvider.java    | 37 ++++++++++----------
 1 file changed, 19 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1757b859/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProvider.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProvider.java
b/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProvider.java
index a942c93..a11a99b 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProvider.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProvider.java
@@ -17,18 +17,10 @@
  */
 package org.apache.ambari.server.controller.internal;
 
-import static org.apache.ambari.server.agent.ExecutionCommand.KeyNames.JDK_LOCATION;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
+import com.google.gson.Gson;
+import com.google.inject.Inject;
+import com.google.inject.Injector;
+import com.google.inject.Provider;
 import org.apache.ambari.server.AmbariException;
 import org.apache.ambari.server.Role;
 import org.apache.ambari.server.StaticallyInject;
@@ -82,10 +74,17 @@ import org.apache.ambari.server.state.StackId;
 import org.apache.ambari.server.utils.StageUtils;
 import org.apache.commons.lang.StringUtils;
 
-import com.google.gson.Gson;
-import com.google.inject.Inject;
-import com.google.inject.Injector;
-import com.google.inject.Provider;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import static org.apache.ambari.server.agent.ExecutionCommand.KeyNames.JDK_LOCATION;
 
 /**
  * Resource provider for cluster stack versions resources.
@@ -681,9 +680,11 @@ public class ClusterStackVersionResourceProvider extends AbstractControllerResou
         throw new SystemException(detailedOutput);
       }
     } catch (AmbariException e) {
-      throw new SystemException("Can not perform request", e);
+      e.printStackTrace();
+      throw new SystemException("Can not perform request. " + e.getMessage(), e);
     } catch (InterruptedException e) {
-      throw new SystemException("Can not perform request", e);
+      e.printStackTrace();
+      throw new SystemException("Can not perform request. " + e.getMessage(), e);
     }
   }
 


Mime
View raw message