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

[11/39] 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/7767f611
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7767f611
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7767f611

Branch: refs/heads/branch-feature-AMBARI-14714-blueprintv2
Commit: 7767f611a477bc778fb7ea63f0bed3bce73c6840
Parents: 7829023
Author: Attila Doroszlai <ad...@hortonworks.com>
Authored: Mon Nov 13 09:16:44 2017 +0100
Committer: Doroszlai, Attila <ad...@hortonworks.com>
Committed: Fri Nov 24 13:30:45 2017 +0100

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/7767f611/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);
     }