{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/25255","repository_url":"https://api.github.com/repos/elastic/kibana","labels_url":"https://api.github.com/repos/elastic/kibana/issues/25255/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/25255/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/25255/events","html_url":"https://github.com/elastic/kibana/pull/25255","id":378068355,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4ODYyMzMz","number":25255,"title":"[migration] Retry attempts for ES service unavailable","user":{"login":"tylersmalley","id":40265,"node_id":"MDQ6VXNlcjQwMjY1","avatar_url":"https://avatars2.githubusercontent.com/u/40265?v=4","gravatar_id":"","url":"https://api.github.com/users/tylersmalley","html_url":"https://github.com/tylersmalley","followers_url":"https://api.github.com/users/tylersmalley/followers","following_url":"https://api.github.com/users/tylersmalley/following{/other_user}","gists_url":"https://api.github.com/users/tylersmalley/gists{/gist_id}","starred_url":"https://api.github.com/users/tylersmalley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylersmalley/subscriptions","organizations_url":"https://api.github.com/users/tylersmalley/orgs","repos_url":"https://api.github.com/users/tylersmalley/repos","events_url":"https://api.github.com/users/tylersmalley/events{/privacy}","received_events_url":"https://api.github.com/users/tylersmalley/received_events","type":"User","site_admin":false},"labels":[{"id":470241342,"node_id":"MDU6TGFiZWw0NzAyNDEzNDI=","url":"https://api.github.com/repos/elastic/kibana/labels/:Operations","name":":Operations","color":"fef2c0","default":false},{"id":135230660,"node_id":"MDU6TGFiZWwxMzUyMzA2NjA=","url":"https://api.github.com/repos/elastic/kibana/labels/blocker","name":"blocker","color":"e11d21","default":false},{"id":26198234,"node_id":"MDU6TGFiZWwyNjE5ODIzNA==","url":"https://api.github.com/repos/elastic/kibana/labels/bug","name":"bug","color":"9e2c2c","default":true},{"id":912973198,"node_id":"MDU6TGFiZWw5MTI5NzMxOTg=","url":"https://api.github.com/repos/elastic/kibana/labels/v6.5.0","name":"v6.5.0","color":"ffffff","default":false},{"id":1062169267,"node_id":"MDU6TGFiZWwxMDYyMTY5MjY3","url":"https://api.github.com/repos/elastic/kibana/labels/v6.6.0","name":"v6.6.0","color":"ffffff","default":false},{"id":654061976,"node_id":"MDU6TGFiZWw2NTQwNjE5NzY=","url":"https://api.github.com/repos/elastic/kibana/labels/v7.0.0","name":"v7.0.0","color":"ffffff","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-06T22:52:17Z","updated_at":"2018-11-06T22:54:17Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/elastic/kibana/pulls/25255","html_url":"https://github.com/elastic/kibana/pull/25255","diff_url":"https://github.com/elastic/kibana/pull/25255.diff","patch_url":"https://github.com/elastic/kibana/pull/25255.patch"},"body":"Resolves a race condition where ES is technically up, but the Kibana index is not.\r\n\r\nCloses #25027\r\n\r\nTo test:\r\n\r\n1. Start ES and Kibana\r\n2. Stop both services\r\n3. Add `console.log(retryCount, e);` to catch on line 190 of elastic_index.ts\r\n4. Start Kibana ` node scripts/kibana --elasticsearch.healthCheck.delay=\"100\"`\r\n5. Wait until Kibana is fully up, and can not connect to ES.\r\n6. Bring ES back up, with the same data as before. Might need to do something to the effect of ` .es/7.0.0/bin/elasticsearch` if using kbn-es.\r\n\r\nThis is flaky, and something I can hit ~50% of the time with the decreased healthCheck delay. You will see the error if you hit this but it should not crash Kibana."},"comment":{"url":"https://api.github.com/repos/elastic/kibana/issues/comments/436439230","html_url":"https://github.com/elastic/kibana/pull/25255#issuecomment-436439230","issue_url":"https://api.github.com/repos/elastic/kibana/issues/25255","id":436439230,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjQzOTIzMA==","user":{"login":"tylersmalley","id":40265,"node_id":"MDQ6VXNlcjQwMjY1","avatar_url":"https://avatars2.githubusercontent.com/u/40265?v=4","gravatar_id":"","url":"https://api.github.com/users/tylersmalley","html_url":"https://github.com/tylersmalley","followers_url":"https://api.github.com/users/tylersmalley/followers","following_url":"https://api.github.com/users/tylersmalley/following{/other_user}","gists_url":"https://api.github.com/users/tylersmalley/gists{/gist_id}","starred_url":"https://api.github.com/users/tylersmalley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylersmalley/subscriptions","organizations_url":"https://api.github.com/users/tylersmalley/orgs","repos_url":"https://api.github.com/users/tylersmalley/repos","events_url":"https://api.github.com/users/tylersmalley/events{/privacy}","received_events_url":"https://api.github.com/users/tylersmalley/received_events","type":"User","site_admin":false},"created_at":"2018-11-06T22:54:17Z","updated_at":"2018-11-06T22:54:17Z","author_association":"MEMBER","body":"Kind of crude, but figure we can expand if needed later to include a list of status codes or extract out into a re-usable function to house retry logic."}}
{"actor":{"display_login":"tylersmalley"}}