{"action":"created","issue":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/1082","labels_url":"https://api.github.com/repos/mesosphere/marathon/issues/1082/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/marathon/issues/1082/comments","events_url":"https://api.github.com/repos/mesosphere/marathon/issues/1082/events","html_url":"https://github.com/mesosphere/marathon/issues/1082","id":55264067,"number":1082,"title":"firstSuccess in health checks is incorrect","user":{"login":"bobrik","id":89186,"avatar_url":"https://avatars.githubusercontent.com/u/89186?v=3","gravatar_id":"","url":"https://api.github.com/users/bobrik","html_url":"https://github.com/bobrik","followers_url":"https://api.github.com/users/bobrik/followers","following_url":"https://api.github.com/users/bobrik/following{/other_user}","gists_url":"https://api.github.com/users/bobrik/gists{/gist_id}","starred_url":"https://api.github.com/users/bobrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobrik/subscriptions","organizations_url":"https://api.github.com/users/bobrik/orgs","repos_url":"https://api.github.com/users/bobrik/repos","events_url":"https://api.github.com/users/bobrik/events{/privacy}","received_events_url":"https://api.github.com/users/bobrik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mesosphere/marathon/labels/blocker","name":"blocker","color":"333333"},{"url":"https://api.github.com/repos/mesosphere/marathon/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mesosphere/marathon/labels/reproduced","name":"reproduced","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mesosphere/marathon/milestones/10","labels_url":"https://api.github.com/repos/mesosphere/marathon/milestones/10/labels","id":808564,"number":10,"title":"0.8.0","description":"","creator":{"login":"ConnorDoyle","id":379372,"avatar_url":"https://avatars.githubusercontent.com/u/379372?v=3","gravatar_id":"","url":"https://api.github.com/users/ConnorDoyle","html_url":"https://github.com/ConnorDoyle","followers_url":"https://api.github.com/users/ConnorDoyle/followers","following_url":"https://api.github.com/users/ConnorDoyle/following{/other_user}","gists_url":"https://api.github.com/users/ConnorDoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/ConnorDoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ConnorDoyle/subscriptions","organizations_url":"https://api.github.com/users/ConnorDoyle/orgs","repos_url":"https://api.github.com/users/ConnorDoyle/repos","events_url":"https://api.github.com/users/ConnorDoyle/events{/privacy}","received_events_url":"https://api.github.com/users/ConnorDoyle/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":54,"state":"closed","created_at":"2014-09-30T17:06:30Z","updated_at":"2015-02-08T12:03:31Z","due_on":"2015-01-23T08:00:00Z","closed_at":"2015-02-08T12:03:31Z"},"comments":60,"created_at":"2015-01-23T10:01:56Z","updated_at":"2015-02-18T17:43:03Z","closed_at":"2015-01-30T18:48:14Z","body":"I'm running master, as usual.\r\n\r\nFirst success for task in ui is reported at `13:47:32` (UTC+4 #1038):\r\n\r\n![screen shot 2015-01-23 at 12 51 53](https://cloud.githubusercontent.com/assets/89186/5872634/b84d5ae0-a2fe-11e4-84ed-41d41f5e4bb6.png)\r\n\r\nBut in logs first success happened much faster:\r\n\r\n```\r\n[2015-01-23 09:43:45,927] INFO Received status update for task topface_prod-test_app.352fb707-a2e4-11e4-b8c3-56847afe9799: TASK_RUNNING () (mesosphere.marathon.MarathonScheduler:148)\r\n[INFO] [01/23/2015 09:43:47.680] [marathon-akka.actor.default-dispatcher-19] [akka://marathon/user/$r] Received health result: [Unhealthy(topface_prod-test_app.352fb707-a2e4-11e4-b8c3-56847afe9799,2015-01-23T09:42:55.010Z,ConnectException: Connection refused,2015-01-23T09:43:47.680Z)]\r\n[INFO] [01/23/2015 09:43:49.700] [marathon-akka.actor.default-dispatcher-18] [akka://marathon/user/$r] Received health result: [Unhealthy(topface_prod-test_app.352fb707-a2e4-11e4-b8c3-56847afe9799,2015-01-23T09:42:55.010Z,ConnectException: Connection refused,2015-01-23T09:43:49.700Z)]\r\n[INFO] [01/23/2015 09:43:51.720] [marathon-akka.actor.default-dispatcher-5] [akka://marathon/user/$r] Received health result: [Unhealthy(topface_prod-test_app.352fb707-a2e4-11e4-b8c3-56847afe9799,2015-01-23T09:42:55.010Z,ConnectException: Connection refused,2015-01-23T09:43:51.720Z)]\r\n[INFO] [01/23/2015 09:43:53.742] [marathon-akka.actor.default-dispatcher-23] [akka://marathon/user/$r] Received health result: [Healthy(topface_prod-test_app.352fb707-a2e4-11e4-b8c3-56847afe9799,2015-01-23T09:42:55.010Z,2015-01-23T09:43:53.741Z)]\r\n[INFO] [01/23/2015 09:43:53.742] [marathon-akka.actor.default-dispatcher-2] [akka://marathon/user/MarathonScheduler/$a/UpgradeManager/f20d2493-45ab-44e3-8ba1-2c5d1437503e/$a] Killing old task topface_prod-test_app.e0b75ff8-a2e2-11e4-b8c3-56847afe9799 because topface_prod-test_app.352fb707-a2e4-11e4-b8c3-56847afe9799 became reachable\r\n[INFO] [01/23/2015 09:43:55.762] [marathon-akka.actor.default-dispatcher-4] [akka://marathon/user/$r] Received health result: [Healthy(topface_prod-test_app.352fb707-a2e4-11e4-b8c3-56847afe9799,2015-01-23T09:42:55.010Z,2015-01-23T09:43:55.761Z)]\r\n[INFO] [01/23/2015 09:43:57.780] [marathon-akka.actor.default-dispatcher-21] [akka://marathon/user/$r] Received health result: [Healthy(topface_prod-test_app.352fb707-a2e4-11e4-b8c3-56847afe9799,2015-01-23T09:42:55.010Z,2015-01-23T09:43:57.780Z)]\r\n[INFO] [01/23/2015 09:43:59.800] [marathon-akka.actor.default-dispatcher-12] [akka://marathon/user/$r] Received health result: [Healthy(topface_prod-test_app.352fb707-a2e4-11e4-b8c3-56847afe9799,2015-01-23T09:42:55.010Z,2015-01-23T09:43:59.800Z)]\r\n```\r\n\r\nThe last started task in this app was actually started at ~13:47. It looks like health checks are not saved until all tasks are running. In UI health check bullet is gray before each task is running in current revision."},"comment":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/comments/74910085","html_url":"https://github.com/mesosphere/marathon/issues/1082#issuecomment-74910085","issue_url":"https://api.github.com/repos/mesosphere/marathon/issues/1082","id":74910085,"user":{"login":"bobrik","id":89186,"avatar_url":"https://avatars.githubusercontent.com/u/89186?v=3","gravatar_id":"","url":"https://api.github.com/users/bobrik","html_url":"https://github.com/bobrik","followers_url":"https://api.github.com/users/bobrik/followers","following_url":"https://api.github.com/users/bobrik/following{/other_user}","gists_url":"https://api.github.com/users/bobrik/gists{/gist_id}","starred_url":"https://api.github.com/users/bobrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobrik/subscriptions","organizations_url":"https://api.github.com/users/bobrik/orgs","repos_url":"https://api.github.com/users/bobrik/repos","events_url":"https://api.github.com/users/bobrik/events{/privacy}","received_events_url":"https://api.github.com/users/bobrik/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T17:43:03Z","updated_at":"2015-02-18T17:43:03Z","body":"Sure, here is the log: https://gist.github.com/bobrik/fbf5b36309e5899530df\r\n\r\nLines are filtered like before. "}}