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/b0f6c6f4
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b0f6c6f4
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b0f6c6f4

Branch: refs/heads/branch-feature-AMBARI-14714-blueprintv2
Commit: b0f6c6f4de90d189092963761c1090cab5dfbee6
Parents: 1ad15e1
Author: Attila Doroszlai <[email protected]>
Authored: Mon Nov 13 09:16:44 2017 +0100
Committer: Doroszlai, Attila <[email protected]>
Committed: Tue Dec 5 23:55:56 2017 +0100

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


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

Reply via email to