You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Andrii Babiichuk (JIRA)" <ji...@apache.org> on 2018/07/19 13:56:00 UTC

[jira] [Commented] (AMBARI-24310) UI sends host check request for custom jdk with invalid hosts

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

Andrii Babiichuk commented on AMBARI-24310:
-------------------------------------------

Merged to trunk

> UI sends host check request for custom jdk with invalid hosts
> -------------------------------------------------------------
>
>                 Key: AMBARI-24310
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24310
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.7.0
>            Reporter: Andrii Babiichuk
>            Assignee: Andrii Babiichuk
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 2.7.1
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> UI sends "java_home_check" host check with all populated hosts instead hosts with passed registration only. This can cause 500 server exception due HostNotFoundException.
> {code}
> 2018-07-05 14:10:30,930 ERROR [ambari-client-thread-573] AbstractResourceProvider:295 - Caught AmbariException when creating a resource
> org.apache.ambari.server.HostNotFoundException: Host not found, hostname=test-0000
>         at org.apache.ambari.server.state.cluster.ClustersImpl.getHost(ClustersImpl.java:456)
>         at org.apache.ambari.server.state.ConfigHelper.getEffectiveDesiredTags(ConfigHelper.java:189)
>         at org.apache.ambari.server.state.ConfigHelper.getEffectiveDesiredTags(ConfigHelper.java:173)
>         at org.apache.ambari.server.controller.AmbariManagementControllerImpl.findConfigurationTagsWithOverrides(AmbariManagementControllerImpl.java:2353)
> {code}
> {code}
> POST http://host:8080/api/v1/requests 500 (Internal Server Error)
> send @ vendor.js:8630
> jQuery.extend.ajax @ vendor.js:8082
> send @ app.js:192735
> doCheckJDK @ app.js:41241
> (anonymous function) @ app.js:41318
> fire @ vendor.js:1141
> self.fireWith @ vendor.js:1252
> done @ vendor.js:8178
> callback @ vendor.js:8702
> {code}
> Body of request:
> {code}
> {"RequestInfo":{"context":"Check hosts","action":"check_host","parameters":{"threshold":"60","java_home":"/tmp/jdk1.8.0_171/","jdk_location":"http://host:8080/resources","check_execute_list":"java_home_check"}},"Requests/resource_filters":[{"hosts":"test-0000,test-0001,test-0002,...
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)