You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by GitBox <gi...@apache.org> on 2022/09/01 23:44:42 UTC

[GitHub] [ambari] eubnara commented on a diff in pull request #3354: AMBARI-25719. Fail to enable kerberos due to NullPointerException and HostNotFoundException

eubnara commented on code in PR #3354:
URL: https://github.com/apache/ambari/pull/3354#discussion_r961181581


##########
ambari-server/src/main/java/org/apache/ambari/server/events/publishers/AgentCommandsPublisher.java:
##########
@@ -111,7 +111,10 @@ public void sendAgentCommand(Multimap<Long, AgentCommand> agentCommands) throws
                 if (!clusterDesiredConfigs.containsKey(clusterId)) {
                   clusterDesiredConfigs.put(clusterId, clusters.getCluster(clusterId).getDesiredConfigs());
                 }
-              } catch (NumberFormatException|AmbariException ignored) {}
+              } catch (NumberFormatException|AmbariException e) {
+                LOG.error("Exception on sendAgentCommand", e);
+                throw new AmbariRuntimeException(e);

Review Comment:
   Oh, wait please.
   When installing new cluster, `NumberFormatException` raises because there is no cluster id for new cluster yet on line `clusterId = Long.valueOf(((ExecutionCommand)ac).getClusterId());`.
   It hangs and cannot proceed next stages.
   I'll fix it wait please.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org