You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2016/04/05 13:13:25 UTC

[jira] [Updated] (AMBARI-15711) Exception thrown when host with unsupported OS is to be mapped to cluster is silently swallowed

     [ https://issues.apache.org/jira/browse/AMBARI-15711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Onischuk updated AMBARI-15711:
-------------------------------------
    Status: Patch Available  (was: Open)

> Exception thrown when host with unsupported OS is to be mapped to cluster is silently swallowed
> -----------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-15711
>                 URL: https://issues.apache.org/jira/browse/AMBARI-15711
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-15711.patch
>
>
> When hosts are being mapped to a clusters (see
> ClustersImpl.java:mapHostToCluster) it verifies if the OS type of the host
> matches the OS types supported by the stack that is being deployed.
> If the OS type of the host is not supported than a warning message is logged
> and an exception is thrown which is silently swallowed.
>     
>     
>     
>     ....
>     if (!isOsSupportedByClusterStack(cluster, host)) {
>           String message = "Trying to map host to cluster where stack does not"
>               + " support host's os type" + ", clusterName=" + clusterName
>               + ", clusterStackId=" + cluster.getDesiredStackVersion().getStackId()
>               + ", hostname=" + hostname + ", hostOsFamily=" + host.getOsFamily();
>           LOG.warn(message);
>           throw new AmbariException(message);
>         }
>     ...
>     
> This message should be logged as ERROR to make easier troubleshooting as most
> of the time people search for exceptions and ERRORs in the log when looking
> into issues with cluster.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)