[ https://issues.apache.org/jira/browse/AMBARI-24310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16549525#comment-16549525 ]
Hudson commented on AMBARI-24310: --------------------------------- SUCCESS: Integrated in Jenkins build Ambari-branch-2.7 #45 (See [https://builds.apache.org/job/Ambari-branch-2.7/45/]) AMBARI-24310 UI sends host check request for custom jdk with invalid (ababiichuk: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=4b3611f44cbc179d68ed1867829cf331bbbfa795]) * (edit) ambari-web/app/controllers/wizard/step3_controller.js > 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 20m > 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)