{"action":"created","issue":{"url":"https://api.github.com/repos/ANXS/mysql/issues/32","labels_url":"https://api.github.com/repos/ANXS/mysql/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/ANXS/mysql/issues/32/comments","events_url":"https://api.github.com/repos/ANXS/mysql/issues/32/events","html_url":"https://github.com/ANXS/mysql/pull/32","id":96615205,"number":32,"title":"Add notify restart mysql and flush","user":{"login":"badi","id":35324,"avatar_url":"https://avatars.githubusercontent.com/u/35324?v=3","gravatar_id":"","url":"https://api.github.com/users/badi","html_url":"https://github.com/badi","followers_url":"https://api.github.com/users/badi/followers","following_url":"https://api.github.com/users/badi/following{/other_user}","gists_url":"https://api.github.com/users/badi/gists{/gist_id}","starred_url":"https://api.github.com/users/badi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badi/subscriptions","organizations_url":"https://api.github.com/users/badi/orgs","repos_url":"https://api.github.com/users/badi/repos","events_url":"https://api.github.com/users/badi/events{/privacy}","received_events_url":"https://api.github.com/users/badi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-22T16:52:31Z","updated_at":"2015-08-03T19:14:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ANXS/mysql/pulls/32","html_url":"https://github.com/ANXS/mysql/pull/32","diff_url":"https://github.com/ANXS/mysql/pull/32.diff","patch_url":"https://github.com/ANXS/mysql/pull/32.patch"},"body":"This change:\r\n- adds a notify to restart mysql on database and user changes\r\n- flushes all handlers at the end of the role.\r\n\r\nMotivation: I was running into a scenario where other roles could not successfully complete the database transaction if the mysql service was not restarted before the attempt."},"comment":{"url":"https://api.github.com/repos/ANXS/mysql/issues/comments/127375935","html_url":"https://github.com/ANXS/mysql/pull/32#issuecomment-127375935","issue_url":"https://api.github.com/repos/ANXS/mysql/issues/32","id":127375935,"user":{"login":"badi","id":35324,"avatar_url":"https://avatars.githubusercontent.com/u/35324?v=3","gravatar_id":"","url":"https://api.github.com/users/badi","html_url":"https://github.com/badi","followers_url":"https://api.github.com/users/badi/followers","following_url":"https://api.github.com/users/badi/following{/other_user}","gists_url":"https://api.github.com/users/badi/gists{/gist_id}","starred_url":"https://api.github.com/users/badi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badi/subscriptions","organizations_url":"https://api.github.com/users/badi/orgs","repos_url":"https://api.github.com/users/badi/repos","events_url":"https://api.github.com/users/badi/events{/privacy}","received_events_url":"https://api.github.com/users/badi/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T19:14:04Z","updated_at":"2015-08-03T19:14:04Z","body":"The problem is that the privileges were not being flushed to the database. As a result, the client processes were denied access, despite having correct authentication credentials. Restarting the whole service is admittedly a heavy-handed solution."}}