{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/707","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/707/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/707/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/707/events","html_url":"https://github.com/hashicorp/consul/pull/707","id":57973915,"number":707,"title":"agent: Snapshot and restore health state on reload. Fixes #693","user":{"login":"armon","id":592032,"avatar_url":"https://avatars.githubusercontent.com/u/592032?v=3","gravatar_id":"","url":"https://api.github.com/users/armon","html_url":"https://github.com/armon","followers_url":"https://api.github.com/users/armon/followers","following_url":"https://api.github.com/users/armon/following{/other_user}","gists_url":"https://api.github.com/users/armon/gists{/gist_id}","starred_url":"https://api.github.com/users/armon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armon/subscriptions","organizations_url":"https://api.github.com/users/armon/orgs","repos_url":"https://api.github.com/users/armon/repos","events_url":"https://api.github.com/users/armon/events{/privacy}","received_events_url":"https://api.github.com/users/armon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-17T20:01:43Z","updated_at":"2015-02-17T20:22:41Z","closed_at":"2015-02-17T20:07:45Z","pull_request":{"url":"https://api.github.com/repos/hashicorp/consul/pulls/707","html_url":"https://github.com/hashicorp/consul/pull/707","diff_url":"https://github.com/hashicorp/consul/pull/707.diff","patch_url":"https://github.com/hashicorp/consul/pull/707.patch"},"body":"Reload works by unregistering all checks/services and then re-registering them. As a result, checks are reset back into the default \"critical\" state. This causes unnecessary flapping, but worse, invalidates any sessions tied to those checks. This PR does a snapshot of the health state and after the reload is handled, does a restore. This prevents flapping and session invalidation."},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/74745049","html_url":"https://github.com/hashicorp/consul/pull/707#issuecomment-74745049","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/707","id":74745049,"user":{"login":"ryanbreen","id":253618,"avatar_url":"https://avatars.githubusercontent.com/u/253618?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanbreen","html_url":"https://github.com/ryanbreen","followers_url":"https://api.github.com/users/ryanbreen/followers","following_url":"https://api.github.com/users/ryanbreen/following{/other_user}","gists_url":"https://api.github.com/users/ryanbreen/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanbreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanbreen/subscriptions","organizations_url":"https://api.github.com/users/ryanbreen/orgs","repos_url":"https://api.github.com/users/ryanbreen/repos","events_url":"https://api.github.com/users/ryanbreen/events{/privacy}","received_events_url":"https://api.github.com/users/ryanbreen/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T20:22:41Z","updated_at":"2015-02-17T20:22:41Z","body":"Ahh, cool.  Thanks!"}}