You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by be...@apache.org on 2017/11/14 11:14:43 UTC

[10/17] ambari git commit: AMBARI-22325. Log blueprint JSON parse error when loading from DB (adoroszlai)

AMBARI-22325. Log blueprint JSON parse error when loading from DB (adoroszlai)


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

Branch: refs/heads/branch-feature-AMBARI-14714-blueprintv2
Commit: e15f05760d88e4095f9f0e3cf58a6047c2f6786e
Parents: 57bef16
Author: Attila Doroszlai <ad...@hortonworks.com>
Authored: Mon Nov 13 09:16:44 2017 +0100
Committer: Balazs Bence Sari <be...@apache.org>
Committed: Tue Nov 14 11:31:15 2017 +0100

----------------------------------------------------------------------
 .../ambari/server/controller/internal/ProvisionClusterRequest.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e15f0576/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ProvisionClusterRequest.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ProvisionClusterRequest.java b/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ProvisionClusterRequest.java
index f773fc8..48d5016 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ProvisionClusterRequest.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ProvisionClusterRequest.java
@@ -325,6 +325,7 @@ public class ProvisionClusterRequest extends BaseClusterRequest {
     try {
       setBlueprint(getBlueprintFactory().getBlueprint(blueprintName));
     } catch (IOException e) {
+      LOG.error("Could not parse JSON stored in DB for blueprint {}", blueprintName, e);
       throw new NoSuchBlueprintException(blueprintName);
     }