{"action":"closed","number":1800,"pull_request":{"url":"https://api.github.com/repos/apache/ambari/pulls/1800","id":202550698,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyNTUwNjk4","html_url":"https://github.com/apache/ambari/pull/1800","diff_url":"https://github.com/apache/ambari/pull/1800.diff","patch_url":"https://github.com/apache/ambari/pull/1800.patch","issue_url":"https://api.github.com/repos/apache/ambari/issues/1800","number":1800,"state":"closed","locked":false,"title":"[AMBARI-24310] UI sends host check request for custom jdk with invalid hosts","user":{"login":"aBabiichuk","id":1963916,"node_id":"MDQ6VXNlcjE5NjM5MTY=","avatar_url":"https://avatars2.githubusercontent.com/u/1963916?v=4","gravatar_id":"","url":"https://api.github.com/users/aBabiichuk","html_url":"https://github.com/aBabiichuk","followers_url":"https://api.github.com/users/aBabiichuk/followers","following_url":"https://api.github.com/users/aBabiichuk/following{/other_user}","gists_url":"https://api.github.com/users/aBabiichuk/gists{/gist_id}","starred_url":"https://api.github.com/users/aBabiichuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aBabiichuk/subscriptions","organizations_url":"https://api.github.com/users/aBabiichuk/orgs","repos_url":"https://api.github.com/users/aBabiichuk/repos","events_url":"https://api.github.com/users/aBabiichuk/events{/privacy}","received_events_url":"https://api.github.com/users/aBabiichuk/received_events","type":"User","site_admin":false},"body":"## What changes were proposed in this pull request?\r\n\r\nUI sends \"java_home_check\" host check with all populated hosts instead hosts with passed registration only. This can cause 500 server exception due HostNotFoundException.\r\n```\r\n2018-07-05 14:10:30,930 ERROR [ambari-client-thread-573] AbstractResourceProvider:295 - Caught AmbariException when creating a resource\r\norg.apache.ambari.server.HostNotFoundException: Host not found, hostname=test-0000\r\n        at org.apache.ambari.server.state.cluster.ClustersImpl.getHost(ClustersImpl.java:456)\r\n        at org.apache.ambari.server.state.ConfigHelper.getEffectiveDesiredTags(ConfigHelper.java:189)\r\n        at org.apache.ambari.server.state.ConfigHelper.getEffectiveDesiredTags(ConfigHelper.java:173)\r\n        at org.apache.ambari.server.controller.AmbariManagementControllerImpl.findConfigurationTagsWithOverrides(AmbariManagementControllerImpl.java:2353)\r\n```\r\n```\r\nPOST http://host:8080/api/v1/requests 500 (Internal Server Error)\r\nsend @ vendor.js:8630\r\njQuery.extend.ajax @ vendor.js:8082\r\nsend @ app.js:192735\r\ndoCheckJDK @ app.js:41241\r\n(anonymous function) @ app.js:41318\r\nfire @ vendor.js:1141\r\nself.fireWith @ vendor.js:1252\r\ndone @ vendor.js:8178\r\ncallback @ vendor.js:8702\r\n```\r\nBody of request:\r\n```\r\n{\"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,...\r\n```\r\n\r\n## How was this patch tested?\r\n\r\nUI unit tests:\r\n  21825 passing (26s)\r\n  48 pending\r\n","created_at":"2018-07-19T12:57:52Z","updated_at":"2018-07-19T13:54:50Z","closed_at":"2018-07-19T13:54:50Z","merged_at":"2018-07-19T13:54:50Z","merge_commit_sha":"8bbd90cc2e0b53ef40fc75f5c9623eb15df43f04","assignee":{"login":"aBabiichuk","id":1963916,"node_id":"MDQ6VXNlcjE5NjM5MTY=","avatar_url":"https://avatars2.githubusercontent.com/u/1963916?v=4","gravatar_id":"","url":"https://api.github.com/users/aBabiichuk","html_url":"https://github.com/aBabiichuk","followers_url":"https://api.github.com/users/aBabiichuk/followers","following_url":"https://api.github.com/users/aBabiichuk/following{/other_user}","gists_url":"https://api.github.com/users/aBabiichuk/gists{/gist_id}","starred_url":"https://api.github.com/users/aBabiichuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aBabiichuk/subscriptions","organizations_url":"https://api.github.com/users/aBabiichuk/orgs","repos_url":"https://api.github.com/users/aBabiichuk/repos","events_url":"https://api.github.com/users/aBabiichuk/events{/privacy}","received_events_url":"https://api.github.com/users/aBabiichuk/received_events","type":"User","site_admin":false},"assignees":[{"login":"aBabiichuk","id":1963916,"node_id":"MDQ6VXNlcjE5NjM5MTY=","avatar_url":"https://avatars2.githubusercontent.com/u/1963916?v=4","gravatar_id":"","url":"https://api.github.com/users/aBabiichuk","html_url":"https://github.com/aBabiichuk","followers_url":"https://api.github.com/users/aBabiichuk/followers","following_url":"https://api.github.com/users/aBabiichuk/following{/other_user}","gists_url":"https://api.github.com/users/aBabiichuk/gists{/gist_id}","starred_url":"https://api.github.com/users/aBabiichuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aBabiichuk/subscriptions","organizations_url":"https://api.github.com/users/aBabiichuk/orgs","repos_url":"https://api.github.com/users/aBabiichuk/repos","events_url":"https://api.github.com/users/aBabiichuk/events{/privacy}","received_events_url":"https://api.github.com/users/aBabiichuk/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":807997966,"node_id":"MDU6TGFiZWw4MDc5OTc5NjY=","url":"https://api.github.com/repos/apache/ambari/labels/web%20client","name":"web client","color":"34c0d8","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/apache/ambari/pulls/1800/commits","review_comments_url":"https://api.github.com/repos/apache/ambari/pulls/1800/comments","review_comment_url":"https://api.github.com/repos/apache/ambari/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/ambari/issues/1800/comments","statuses_url":"https://api.github.com/repos/apache/ambari/statuses/0ef1a4eba2ed90e11ecb2817fb7c35ba4a2ff862","head":{"label":"aBabiichuk:AMBARI-24310-trunk","ref":"AMBARI-24310-trunk","sha":"0ef1a4eba2ed90e11ecb2817fb7c35ba4a2ff862","user":{"login":"aBabiichuk","id":1963916,"node_id":"MDQ6VXNlcjE5NjM5MTY=","avatar_url":"https://avatars2.githubusercontent.com/u/1963916?v=4","gravatar_id":"","url":"https://api.github.com/users/aBabiichuk","html_url":"https://github.com/aBabiichuk","followers_url":"https://api.github.com/users/aBabiichuk/followers","following_url":"https://api.github.com/users/aBabiichuk/following{/other_user}","gists_url":"https://api.github.com/users/aBabiichuk/gists{/gist_id}","starred_url":"https://api.github.com/users/aBabiichuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aBabiichuk/subscriptions","organizations_url":"https://api.github.com/users/aBabiichuk/orgs","repos_url":"https://api.github.com/users/aBabiichuk/repos","events_url":"https://api.github.com/users/aBabiichuk/events{/privacy}","received_events_url":"https://api.github.com/users/aBabiichuk/received_events","type":"User","site_admin":false},"repo":{"id":116809129,"node_id":"MDEwOlJlcG9zaXRvcnkxMTY4MDkxMjk=","name":"ambari","full_name":"aBabiichuk/ambari","owner":{"login":"aBabiichuk","id":1963916,"node_id":"MDQ6VXNlcjE5NjM5MTY=","avatar_url":"https://avatars2.githubusercontent.com/u/1963916?v=4","gravatar_id":"","url":"https://api.github.com/users/aBabiichuk","html_url":"https://github.com/aBabiichuk","followers_url":"https://api.github.com/users/aBabiichuk/followers","following_url":"https://api.github.com/users/aBabiichuk/following{/other_user}","gists_url":"https://api.github.com/users/aBabiichuk/gists{/gist_id}","starred_url":"https://api.github.com/users/aBabiichuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aBabiichuk/subscriptions","organizations_url":"https://api.github.com/users/aBabiichuk/orgs","repos_url":"https://api.github.com/users/aBabiichuk/repos","events_url":"https://api.github.com/users/aBabiichuk/events{/privacy}","received_events_url":"https://api.github.com/users/aBabiichuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aBabiichuk/ambari","description":"Mirror of Apache Ambari","fork":true,"url":"https://api.github.com/repos/aBabiichuk/ambari","forks_url":"https://api.github.com/repos/aBabiichuk/ambari/forks","keys_url":"https://api.github.com/repos/aBabiichuk/ambari/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aBabiichuk/ambari/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aBabiichuk/ambari/teams","hooks_url":"https://api.github.com/repos/aBabiichuk/ambari/hooks","issue_events_url":"https://api.github.com/repos/aBabiichuk/ambari/issues/events{/number}","events_url":"https://api.github.com/repos/aBabiichuk/ambari/events","assignees_url":"https://api.github.com/repos/aBabiichuk/ambari/assignees{/user}","branches_url":"https://api.github.com/repos/aBabiichuk/ambari/branches{/branch}","tags_url":"https://api.github.com/repos/aBabiichuk/ambari/tags","blobs_url":"https://api.github.com/repos/aBabiichuk/ambari/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aBabiichuk/ambari/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aBabiichuk/ambari/git/refs{/sha}","trees_url":"https://api.github.com/repos/aBabiichuk/ambari/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aBabiichuk/ambari/statuses/{sha}","languages_url":"https://api.github.com/repos/aBabiichuk/ambari/languages","stargazers_url":"https://api.github.com/repos/aBabiichuk/ambari/stargazers","contributors_url":"https://api.github.com/repos/aBabiichuk/ambari/contributors","subscribers_url":"https://api.github.com/repos/aBabiichuk/ambari/subscribers","subscription_url":"https://api.github.com/repos/aBabiichuk/ambari/subscription","commits_url":"https://api.github.com/repos/aBabiichuk/ambari/commits{/sha}","git_commits_url":"https://api.github.com/repos/aBabiichuk/ambari/git/commits{/sha}","comments_url":"https://api.github.com/repos/aBabiichuk/ambari/comments{/number}","issue_comment_url":"https://api.github.com/repos/aBabiichuk/ambari/issues/comments{/number}","contents_url":"https://api.github.com/repos/aBabiichuk/ambari/contents/{+path}","compare_url":"https://api.github.com/repos/aBabiichuk/ambari/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aBabiichuk/ambari/merges","archive_url":"https://api.github.com/repos/aBabiichuk/ambari/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aBabiichuk/ambari/downloads","issues_url":"https://api.github.com/repos/aBabiichuk/ambari/issues{/number}","pulls_url":"https://api.github.com/repos/aBabiichuk/ambari/pulls{/number}","milestones_url":"https://api.github.com/repos/aBabiichuk/ambari/milestones{/number}","notifications_url":"https://api.github.com/repos/aBabiichuk/ambari/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aBabiichuk/ambari/labels{/name}","releases_url":"https://api.github.com/repos/aBabiichuk/ambari/releases{/id}","deployments_url":"https://api.github.com/repos/aBabiichuk/ambari/deployments","created_at":"2018-01-09T11:44:51Z","updated_at":"2018-07-19T13:21:03Z","pushed_at":"2018-07-19T13:53:09Z","git_url":"git://github.com/aBabiichuk/ambari.git","ssh_url":"git@github.com:aBabiichuk/ambari.git","clone_url":"https://github.com/aBabiichuk/ambari.git","svn_url":"https://github.com/aBabiichuk/ambari","homepage":null,"size":318759,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"trunk"}},"base":{"label":"apache:trunk","ref":"trunk","sha":"583fc0ca640351d8153e8c29e67ab1b938f28a95","user":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":2442457,"node_id":"MDEwOlJlcG9zaXRvcnkyNDQyNDU3","name":"ambari","full_name":"apache/ambari","owner":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/ambari","description":"Mirror of Apache Ambari","fork":false,"url":"https://api.github.com/repos/apache/ambari","forks_url":"https://api.github.com/repos/apache/ambari/forks","keys_url":"https://api.github.com/repos/apache/ambari/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/ambari/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/ambari/teams","hooks_url":"https://api.github.com/repos/apache/ambari/hooks","issue_events_url":"https://api.github.com/repos/apache/ambari/issues/events{/number}","events_url":"https://api.github.com/repos/apache/ambari/events","assignees_url":"https://api.github.com/repos/apache/ambari/assignees{/user}","branches_url":"https://api.github.com/repos/apache/ambari/branches{/branch}","tags_url":"https://api.github.com/repos/apache/ambari/tags","blobs_url":"https://api.github.com/repos/apache/ambari/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/ambari/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/ambari/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/ambari/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/ambari/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/ambari/languages","stargazers_url":"https://api.github.com/repos/apache/ambari/stargazers","contributors_url":"https://api.github.com/repos/apache/ambari/contributors","subscribers_url":"https://api.github.com/repos/apache/ambari/subscribers","subscription_url":"https://api.github.com/repos/apache/ambari/subscription","commits_url":"https://api.github.com/repos/apache/ambari/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/ambari/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/ambari/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/ambari/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/ambari/contents/{+path}","compare_url":"https://api.github.com/repos/apache/ambari/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/ambari/merges","archive_url":"https://api.github.com/repos/apache/ambari/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/ambari/downloads","issues_url":"https://api.github.com/repos/apache/ambari/issues{/number}","pulls_url":"https://api.github.com/repos/apache/ambari/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/ambari/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/ambari/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/ambari/labels{/name}","releases_url":"https://api.github.com/repos/apache/ambari/releases{/id}","deployments_url":"https://api.github.com/repos/apache/ambari/deployments","created_at":"2011-09-23T07:00:08Z","updated_at":"2018-07-19T13:28:31Z","pushed_at":"2018-07-19T13:54:50Z","git_url":"git://github.com/apache/ambari.git","ssh_url":"git@github.com:apache/ambari.git","clone_url":"https://github.com/apache/ambari.git","svn_url":"https://github.com/apache/ambari","homepage":null,"size":331376,"stargazers_count":879,"watchers_count":879,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":897,"mirror_url":null,"archived":false,"open_issues_count":61,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":897,"open_issues":61,"watchers":879,"default_branch":"trunk"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/ambari/pulls/1800"},"html":{"href":"https://github.com/apache/ambari/pull/1800"},"issue":{"href":"https://api.github.com/repos/apache/ambari/issues/1800"},"comments":{"href":"https://api.github.com/repos/apache/ambari/issues/1800/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/ambari/pulls/1800/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/ambari/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/ambari/pulls/1800/commits"},"statuses":{"href":"https://api.github.com/repos/apache/ambari/statuses/0ef1a4eba2ed90e11ecb2817fb7c35ba4a2ff862"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"aBabiichuk","id":1963916,"node_id":"MDQ6VXNlcjE5NjM5MTY=","avatar_url":"https://avatars2.githubusercontent.com/u/1963916?v=4","gravatar_id":"","url":"https://api.github.com/users/aBabiichuk","html_url":"https://github.com/aBabiichuk","followers_url":"https://api.github.com/users/aBabiichuk/followers","following_url":"https://api.github.com/users/aBabiichuk/following{/other_user}","gists_url":"https://api.github.com/users/aBabiichuk/gists{/gist_id}","starred_url":"https://api.github.com/users/aBabiichuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aBabiichuk/subscriptions","organizations_url":"https://api.github.com/users/aBabiichuk/orgs","repos_url":"https://api.github.com/users/aBabiichuk/repos","events_url":"https://api.github.com/users/aBabiichuk/events{/privacy}","received_events_url":"https://api.github.com/users/aBabiichuk/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":3,"deletions":3,"changed_files":1}}
{"actor":{"display_login":"aBabiichuk"}}