{"action":"created","issue":{"url":"https://api.github.com/repos/openvswitch/ovn-kubernetes/issues/5","repository_url":"https://api.github.com/repos/openvswitch/ovn-kubernetes","labels_url":"https://api.github.com/repos/openvswitch/ovn-kubernetes/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/openvswitch/ovn-kubernetes/issues/5/comments","events_url":"https://api.github.com/repos/openvswitch/ovn-kubernetes/issues/5/events","html_url":"https://github.com/openvswitch/ovn-kubernetes/pull/5","id":174769805,"number":5,"title":"Avoid continuosly handling events due to leader election annotations","user":{"login":"salv-orlando","id":971526,"avatar_url":"https://avatars.githubusercontent.com/u/971526?v=3","gravatar_id":"","url":"https://api.github.com/users/salv-orlando","html_url":"https://github.com/salv-orlando","followers_url":"https://api.github.com/users/salv-orlando/followers","following_url":"https://api.github.com/users/salv-orlando/following{/other_user}","gists_url":"https://api.github.com/users/salv-orlando/gists{/gist_id}","starred_url":"https://api.github.com/users/salv-orlando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salv-orlando/subscriptions","organizations_url":"https://api.github.com/users/salv-orlando/orgs","repos_url":"https://api.github.com/users/salv-orlando/repos","events_url":"https://api.github.com/users/salv-orlando/events{/privacy}","received_events_url":"https://api.github.com/users/salv-orlando/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-02T14:14:05Z","updated_at":"2016-09-02T15:31:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openvswitch/ovn-kubernetes/pulls/5","html_url":"https://github.com/openvswitch/ovn-kubernetes/pull/5","diff_url":"https://github.com/openvswitch/ovn-kubernetes/pull/5.diff","patch_url":"https://github.com/openvswitch/ovn-kubernetes/pull/5.patch"},"body":"Leader election causes a lot of endpoint updates (see kubernetes\r\nissue #23812). This implies that roughly every 2 seconds an endpoint\r\nMODIFIED event is sent for processing, for every endpoint where\r\nleader election is enabled (examples: kube-scheduler or\r\nkube-controller-manager).\r\n\r\nThis patch leverages the so far unused object cache in the endpoint\r\nwatcher, sending the event only when ip changes are detected in the\r\nendpoint data structure. To this aim, the logic for extracting ips\r\nfrom the endpoint object has been moved from overlay.py into\r\nendpoint_watcher.py\r\n\r\nAlso, tt is not to be taken for granted that given and endpoint,\r\nthere will always be a service with that name. This patch therefore\r\nalso adds explicit handling of 404 errors.\r\nThis is however a rather minor point as the final result of this\r\nerror handling is the interruption of endpoint processing in any\r\ncase."},"comment":{"url":"https://api.github.com/repos/openvswitch/ovn-kubernetes/issues/comments/244408500","html_url":"https://github.com/openvswitch/ovn-kubernetes/pull/5#issuecomment-244408500","issue_url":"https://api.github.com/repos/openvswitch/ovn-kubernetes/issues/5","id":244408500,"user":{"login":"salv-orlando","id":971526,"avatar_url":"https://avatars.githubusercontent.com/u/971526?v=3","gravatar_id":"","url":"https://api.github.com/users/salv-orlando","html_url":"https://github.com/salv-orlando","followers_url":"https://api.github.com/users/salv-orlando/followers","following_url":"https://api.github.com/users/salv-orlando/following{/other_user}","gists_url":"https://api.github.com/users/salv-orlando/gists{/gist_id}","starred_url":"https://api.github.com/users/salv-orlando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salv-orlando/subscriptions","organizations_url":"https://api.github.com/users/salv-orlando/orgs","repos_url":"https://api.github.com/users/salv-orlando/repos","events_url":"https://api.github.com/users/salv-orlando/events{/privacy}","received_events_url":"https://api.github.com/users/salv-orlando/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T15:31:40Z","updated_at":"2016-09-02T15:31:40Z","body":"It turns out that squashing commits locally and pushing a forced update works just fine."}}
{"actor":{"display_login":"salv-orlando"}}