{"action":"created","issue":{"url":"https://api.github.com/repos/milannic/libevent_paxos/issues/8","labels_url":"https://api.github.com/repos/milannic/libevent_paxos/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/milannic/libevent_paxos/issues/8/comments","events_url":"https://api.github.com/repos/milannic/libevent_paxos/issues/8/events","html_url":"https://github.com/milannic/libevent_paxos/issues/8","id":58495151,"number":8,"title":"Missing View Proposing Phase","user":{"login":"ruigulala","id":10216005,"avatar_url":"https://avatars.githubusercontent.com/u/10216005?v=3","gravatar_id":"","url":"https://api.github.com/users/ruigulala","html_url":"https://github.com/ruigulala","followers_url":"https://api.github.com/users/ruigulala/followers","following_url":"https://api.github.com/users/ruigulala/following{/other_user}","gists_url":"https://api.github.com/users/ruigulala/gists{/gist_id}","starred_url":"https://api.github.com/users/ruigulala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruigulala/subscriptions","organizations_url":"https://api.github.com/users/ruigulala/orgs","repos_url":"https://api.github.com/users/ruigulala/repos","events_url":"https://api.github.com/users/ruigulala/events{/privacy}","received_events_url":"https://api.github.com/users/ruigulala/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/milannic/libevent_paxos/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"ruigulala","id":10216005,"avatar_url":"https://avatars.githubusercontent.com/u/10216005?v=3","gravatar_id":"","url":"https://api.github.com/users/ruigulala","html_url":"https://github.com/ruigulala","followers_url":"https://api.github.com/users/ruigulala/followers","following_url":"https://api.github.com/users/ruigulala/following{/other_user}","gists_url":"https://api.github.com/users/ruigulala/gists{/gist_id}","starred_url":"https://api.github.com/users/ruigulala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruigulala/subscriptions","organizations_url":"https://api.github.com/users/ruigulala/orgs","repos_url":"https://api.github.com/users/ruigulala/repos","events_url":"https://api.github.com/users/ruigulala/events{/privacy}","received_events_url":"https://api.github.com/users/ruigulala/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-02-22T08:22:08Z","updated_at":"2015-02-22T18:29:08Z","closed_at":null,"body":"According to Paxos Made Practical, the first phase of leader election is proposing a new view. The current implementation skips this phase. Thus, for the leader election process under the current implementation, only two nodes will be involved. The restarted node will be blocked outside due to the mismatch of view id. Since two nodes still can come into consensus, I'll skip this problem for now."},"comment":{"url":"https://api.github.com/repos/milannic/libevent_paxos/issues/comments/75449617","html_url":"https://github.com/milannic/libevent_paxos/issues/8#issuecomment-75449617","issue_url":"https://api.github.com/repos/milannic/libevent_paxos/issues/8","id":75449617,"user":{"login":"ruigulala","id":10216005,"avatar_url":"https://avatars.githubusercontent.com/u/10216005?v=3","gravatar_id":"","url":"https://api.github.com/users/ruigulala","html_url":"https://github.com/ruigulala","followers_url":"https://api.github.com/users/ruigulala/followers","following_url":"https://api.github.com/users/ruigulala/following{/other_user}","gists_url":"https://api.github.com/users/ruigulala/gists{/gist_id}","starred_url":"https://api.github.com/users/ruigulala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruigulala/subscriptions","organizations_url":"https://api.github.com/users/ruigulala/orgs","repos_url":"https://api.github.com/users/ruigulala/repos","events_url":"https://api.github.com/users/ruigulala/events{/privacy}","received_events_url":"https://api.github.com/users/ruigulala/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T18:29:08Z","updated_at":"2015-02-22T18:29:08Z","body":"Hi Cheng,\r\nThank you so much for the reply. Really appreciate it.\r\nLet me put more details into this. So the current problem is, the view_id of restarted node won't be updated until the new leader is elected or at least view_id won't update in phase 1 and 2.  Thus, the view_id of the restarted leader will be outdated even when other nodes enter phase two. I found this because the other nodes keep throwing away the messages from the restarted node. I agree that the view_id will be updated eventually.\r\nBtw, I'm assuming you don't expect the restarted node update its view by handling leader_election_close msg right?  "}}