You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by dm...@apache.org on 2015/11/18 16:58:38 UTC
ambari git commit: AMBARI-13944. Fix logged message: No service found
for config type '{}', service config version not created (dlysnichenko)
Repository: ambari
Updated Branches:
refs/heads/trunk 4ffa82967 -> 0959b6099
AMBARI-13944. Fix logged message: No service found for config type '{}', service config version not created (dlysnichenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/0959b609
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/0959b609
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/0959b609
Branch: refs/heads/trunk
Commit: 0959b6099ba6bbbc6a554b92e416d5d93d4ac0c4
Parents: 4ffa829
Author: Lisnichenko Dmitro <dl...@hortonworks.com>
Authored: Wed Nov 18 17:58:15 2015 +0200
Committer: Lisnichenko Dmitro <dl...@hortonworks.com>
Committed: Wed Nov 18 17:58:15 2015 +0200
----------------------------------------------------------------------
.../org/apache/ambari/server/state/cluster/ClusterImpl.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/0959b609/ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java b/ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
index fe96ea2..17c030d 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
@@ -2483,7 +2483,11 @@ public class ClusterImpl implements Cluster {
}
if (serviceName == null) {
- LOG.error("No service found for config type '{}', service config version not created");
+ ArrayList<String> configTypes = new ArrayList<>();
+ for (Config config: configs) {
+ configTypes.add(config.getType());
+ }
+ LOG.error("No service found for config types '{}', service config version not created", configTypes);
return null;
} else {
return createServiceConfigVersion(serviceName, user, serviceConfigVersionNote);