ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-15711) Exception thrown when host with unsupported OS is to be mapped to cluster is silently swallowed
Date Tue, 05 Apr 2016 18:02:25 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-15711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15226784#comment-15226784
] 

Hudson commented on AMBARI-15711:
---------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #4598 (See [https://builds.apache.org/job/Ambari-trunk-Commit/4598/])
AMBARI-15711. Exception thrown when host with unsupported OS is to be (aonishuk: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=36edfee565e17bbd5a32fe8ec7a691b7a06965fe])
* ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClustersImpl.java


> 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)

Mime
View raw message