{"action":"created","issue":{"url":"https://api.github.com/repos/openzfs/openzfs/issues/110","repository_url":"https://api.github.com/repos/openzfs/openzfs","labels_url":"https://api.github.com/repos/openzfs/openzfs/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/openzfs/openzfs/issues/110/comments","events_url":"https://api.github.com/repos/openzfs/openzfs/issues/110/events","html_url":"https://github.com/openzfs/openzfs/pull/110","id":157221809,"number":110,"title":"7002 Fix the resource.fs.zfs.statechange sysevent","user":{"login":"asomers","id":129721,"avatar_url":"https://avatars.githubusercontent.com/u/129721?v=3","gravatar_id":"","url":"https://api.github.com/users/asomers","html_url":"https://github.com/asomers","followers_url":"https://api.github.com/users/asomers/followers","following_url":"https://api.github.com/users/asomers/following{/other_user}","gists_url":"https://api.github.com/users/asomers/gists{/gist_id}","starred_url":"https://api.github.com/users/asomers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asomers/subscriptions","organizations_url":"https://api.github.com/users/asomers/orgs","repos_url":"https://api.github.com/users/asomers/repos","events_url":"https://api.github.com/users/asomers/events{/privacy}","received_events_url":"https://api.github.com/users/asomers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openzfs/openzfs/labels/test%20pass","name":"test pass","color":"0e8a16"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-05-27T14:41:29Z","updated_at":"2016-09-21T22:47:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openzfs/openzfs/pulls/110","html_url":"https://github.com/openzfs/openzfs/pull/110","diff_url":"https://github.com/openzfs/openzfs/pull/110.diff","patch_url":"https://github.com/openzfs/openzfs/pull/110.patch"},"body":"Fix the resource.fs.zfs.statechange sysevent\r\n\r\nIt has a number of problems:\r\n\r\n* It is only being emitted on a transition to the HEALTHY state. That\r\n  makes it impossible for userland daemons to take actions based on\r\n  drives getting sicker.\r\n\r\n* It compares the new state to vdev_prevstate, which is the state\r\n  that the vdev had the last time it was opened. That doesn't make\r\n  sense, because a vdev can change state multiple times without\r\n  being reopened.\r\n\r\n* vdev_set_state contains logic that will change the device's\r\n  new state based on various conditions. However, the statechange event\r\n  is being posted before that logic took effect. Now it's being posted\r\n  after."},"comment":{"url":"https://api.github.com/repos/openzfs/openzfs/issues/comments/248764811","html_url":"https://github.com/openzfs/openzfs/pull/110#issuecomment-248764811","issue_url":"https://api.github.com/repos/openzfs/openzfs/issues/110","id":248764811,"user":{"login":"asomers","id":129721,"avatar_url":"https://avatars.githubusercontent.com/u/129721?v=3","gravatar_id":"","url":"https://api.github.com/users/asomers","html_url":"https://github.com/asomers","followers_url":"https://api.github.com/users/asomers/followers","following_url":"https://api.github.com/users/asomers/following{/other_user}","gists_url":"https://api.github.com/users/asomers/gists{/gist_id}","starred_url":"https://api.github.com/users/asomers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asomers/subscriptions","organizations_url":"https://api.github.com/users/asomers/orgs","repos_url":"https://api.github.com/users/asomers/repos","events_url":"https://api.github.com/users/asomers/events{/privacy}","received_events_url":"https://api.github.com/users/asomers/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T22:47:45Z","updated_at":"2016-09-21T22:47:45Z","body":"Could I please get some review on this?"}}
{"actor":{"display_login":"asomers"}}