{"action":"opened","number":1118,"pull_request":{"url":"https://api.github.com/repos/CanalTP/navitia/pulls/1118","id":40433861,"html_url":"https://github.com/CanalTP/navitia/pull/1118","diff_url":"https://github.com/CanalTP/navitia/pull/1118.diff","patch_url":"https://github.com/CanalTP/navitia/pull/1118.patch","issue_url":"https://api.github.com/repos/CanalTP/navitia/issues/1118","number":1118,"state":"open","locked":false,"title":"[monitor-kraken] Set 0mq linger to 0 to discard messages when closing socket","user":{"login":"guikcd","id":676032,"avatar_url":"https://avatars.githubusercontent.com/u/676032?v=3","gravatar_id":"","url":"https://api.github.com/users/guikcd","html_url":"https://github.com/guikcd","followers_url":"https://api.github.com/users/guikcd/followers","following_url":"https://api.github.com/users/guikcd/following{/other_user}","gists_url":"https://api.github.com/users/guikcd/gists{/gist_id}","starred_url":"https://api.github.com/users/guikcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guikcd/subscriptions","organizations_url":"https://api.github.com/users/guikcd/orgs","repos_url":"https://api.github.com/users/guikcd/repos","events_url":"https://api.github.com/users/guikcd/events{/privacy}","received_events_url":"https://api.github.com/users/guikcd/received_events","type":"User","site_admin":false},"body":"sock.close() before returning *\"status\": \"timeout\"* seems to be ineffective here, because there is messages pending.\r\nThe real fix seems to be to tell zmq to discard pending messages when closing / socket destroy context.\r\n\r\nReproducing the problem is simple: just call *monitor-kraken/?instance=<instance_name>* where instance_name is a non started kraken instance.\r\n\r\nmonitor-kraken patched only on one production node works well.\r\n\r\nSources:\r\nhttps://github.com/zeromq/pyzmq/issues/132\r\nhttp://api.zeromq.org/2-1:zmq-setsockopt#toc15","created_at":"2015-07-21T08:35:27Z","updated_at":"2015-07-21T08:35:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CanalTP/navitia/pulls/1118/commits","review_comments_url":"https://api.github.com/repos/CanalTP/navitia/pulls/1118/comments","review_comment_url":"https://api.github.com/repos/CanalTP/navitia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CanalTP/navitia/issues/1118/comments","statuses_url":"https://api.github.com/repos/CanalTP/navitia/statuses/947707d0732dcdcc17c932d52971a650ce3f577a","head":{"label":"guikcd:monitor_kraken_timeout","ref":"monitor_kraken_timeout","sha":"947707d0732dcdcc17c932d52971a650ce3f577a","user":{"login":"guikcd","id":676032,"avatar_url":"https://avatars.githubusercontent.com/u/676032?v=3","gravatar_id":"","url":"https://api.github.com/users/guikcd","html_url":"https://github.com/guikcd","followers_url":"https://api.github.com/users/guikcd/followers","following_url":"https://api.github.com/users/guikcd/following{/other_user}","gists_url":"https://api.github.com/users/guikcd/gists{/gist_id}","starred_url":"https://api.github.com/users/guikcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guikcd/subscriptions","organizations_url":"https://api.github.com/users/guikcd/orgs","repos_url":"https://api.github.com/users/guikcd/repos","events_url":"https://api.github.com/users/guikcd/events{/privacy}","received_events_url":"https://api.github.com/users/guikcd/received_events","type":"User","site_admin":false},"repo":{"id":19350263,"name":"navitia","full_name":"guikcd/navitia","owner":{"login":"guikcd","id":676032,"avatar_url":"https://avatars.githubusercontent.com/u/676032?v=3","gravatar_id":"","url":"https://api.github.com/users/guikcd","html_url":"https://github.com/guikcd","followers_url":"https://api.github.com/users/guikcd/followers","following_url":"https://api.github.com/users/guikcd/following{/other_user}","gists_url":"https://api.github.com/users/guikcd/gists{/gist_id}","starred_url":"https://api.github.com/users/guikcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guikcd/subscriptions","organizations_url":"https://api.github.com/users/guikcd/orgs","repos_url":"https://api.github.com/users/guikcd/repos","events_url":"https://api.github.com/users/guikcd/events{/privacy}","received_events_url":"https://api.github.com/users/guikcd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/guikcd/navitia","description":"The REST API to build cool stuff with public transport","fork":true,"url":"https://api.github.com/repos/guikcd/navitia","forks_url":"https://api.github.com/repos/guikcd/navitia/forks","keys_url":"https://api.github.com/repos/guikcd/navitia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guikcd/navitia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guikcd/navitia/teams","hooks_url":"https://api.github.com/repos/guikcd/navitia/hooks","issue_events_url":"https://api.github.com/repos/guikcd/navitia/issues/events{/number}","events_url":"https://api.github.com/repos/guikcd/navitia/events","assignees_url":"https://api.github.com/repos/guikcd/navitia/assignees{/user}","branches_url":"https://api.github.com/repos/guikcd/navitia/branches{/branch}","tags_url":"https://api.github.com/repos/guikcd/navitia/tags","blobs_url":"https://api.github.com/repos/guikcd/navitia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guikcd/navitia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guikcd/navitia/git/refs{/sha}","trees_url":"https://api.github.com/repos/guikcd/navitia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guikcd/navitia/statuses/{sha}","languages_url":"https://api.github.com/repos/guikcd/navitia/languages","stargazers_url":"https://api.github.com/repos/guikcd/navitia/stargazers","contributors_url":"https://api.github.com/repos/guikcd/navitia/contributors","subscribers_url":"https://api.github.com/repos/guikcd/navitia/subscribers","subscription_url":"https://api.github.com/repos/guikcd/navitia/subscription","commits_url":"https://api.github.com/repos/guikcd/navitia/commits{/sha}","git_commits_url":"https://api.github.com/repos/guikcd/navitia/git/commits{/sha}","comments_url":"https://api.github.com/repos/guikcd/navitia/comments{/number}","issue_comment_url":"https://api.github.com/repos/guikcd/navitia/issues/comments{/number}","contents_url":"https://api.github.com/repos/guikcd/navitia/contents/{+path}","compare_url":"https://api.github.com/repos/guikcd/navitia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guikcd/navitia/merges","archive_url":"https://api.github.com/repos/guikcd/navitia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guikcd/navitia/downloads","issues_url":"https://api.github.com/repos/guikcd/navitia/issues{/number}","pulls_url":"https://api.github.com/repos/guikcd/navitia/pulls{/number}","milestones_url":"https://api.github.com/repos/guikcd/navitia/milestones{/number}","notifications_url":"https://api.github.com/repos/guikcd/navitia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guikcd/navitia/labels{/name}","releases_url":"https://api.github.com/repos/guikcd/navitia/releases{/id}","created_at":"2014-05-01T16:24:07Z","updated_at":"2015-02-20T13:04:37Z","pushed_at":"2015-07-21T08:28:46Z","git_url":"git://github.com/guikcd/navitia.git","ssh_url":"git@github.com:guikcd/navitia.git","clone_url":"https://github.com/guikcd/navitia.git","svn_url":"https://github.com/guikcd/navitia","homepage":"http://www.navitia.io","size":22936,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"CanalTP:dev","ref":"dev","sha":"03629031f2fccda30e70faa49588a35b90ae4062","user":{"login":"CanalTP","id":2743985,"avatar_url":"https://avatars.githubusercontent.com/u/2743985?v=3","gravatar_id":"","url":"https://api.github.com/users/CanalTP","html_url":"https://github.com/CanalTP","followers_url":"https://api.github.com/users/CanalTP/followers","following_url":"https://api.github.com/users/CanalTP/following{/other_user}","gists_url":"https://api.github.com/users/CanalTP/gists{/gist_id}","starred_url":"https://api.github.com/users/CanalTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CanalTP/subscriptions","organizations_url":"https://api.github.com/users/CanalTP/orgs","repos_url":"https://api.github.com/users/CanalTP/repos","events_url":"https://api.github.com/users/CanalTP/events{/privacy}","received_events_url":"https://api.github.com/users/CanalTP/received_events","type":"Organization","site_admin":false},"repo":{"id":10797333,"name":"navitia","full_name":"CanalTP/navitia","owner":{"login":"CanalTP","id":2743985,"avatar_url":"https://avatars.githubusercontent.com/u/2743985?v=3","gravatar_id":"","url":"https://api.github.com/users/CanalTP","html_url":"https://github.com/CanalTP","followers_url":"https://api.github.com/users/CanalTP/followers","following_url":"https://api.github.com/users/CanalTP/following{/other_user}","gists_url":"https://api.github.com/users/CanalTP/gists{/gist_id}","starred_url":"https://api.github.com/users/CanalTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CanalTP/subscriptions","organizations_url":"https://api.github.com/users/CanalTP/orgs","repos_url":"https://api.github.com/users/CanalTP/repos","events_url":"https://api.github.com/users/CanalTP/events{/privacy}","received_events_url":"https://api.github.com/users/CanalTP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CanalTP/navitia","description":"The REST API to build cool stuff with public transport","fork":false,"url":"https://api.github.com/repos/CanalTP/navitia","forks_url":"https://api.github.com/repos/CanalTP/navitia/forks","keys_url":"https://api.github.com/repos/CanalTP/navitia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CanalTP/navitia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CanalTP/navitia/teams","hooks_url":"https://api.github.com/repos/CanalTP/navitia/hooks","issue_events_url":"https://api.github.com/repos/CanalTP/navitia/issues/events{/number}","events_url":"https://api.github.com/repos/CanalTP/navitia/events","assignees_url":"https://api.github.com/repos/CanalTP/navitia/assignees{/user}","branches_url":"https://api.github.com/repos/CanalTP/navitia/branches{/branch}","tags_url":"https://api.github.com/repos/CanalTP/navitia/tags","blobs_url":"https://api.github.com/repos/CanalTP/navitia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CanalTP/navitia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CanalTP/navitia/git/refs{/sha}","trees_url":"https://api.github.com/repos/CanalTP/navitia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CanalTP/navitia/statuses/{sha}","languages_url":"https://api.github.com/repos/CanalTP/navitia/languages","stargazers_url":"https://api.github.com/repos/CanalTP/navitia/stargazers","contributors_url":"https://api.github.com/repos/CanalTP/navitia/contributors","subscribers_url":"https://api.github.com/repos/CanalTP/navitia/subscribers","subscription_url":"https://api.github.com/repos/CanalTP/navitia/subscription","commits_url":"https://api.github.com/repos/CanalTP/navitia/commits{/sha}","git_commits_url":"https://api.github.com/repos/CanalTP/navitia/git/commits{/sha}","comments_url":"https://api.github.com/repos/CanalTP/navitia/comments{/number}","issue_comment_url":"https://api.github.com/repos/CanalTP/navitia/issues/comments{/number}","contents_url":"https://api.github.com/repos/CanalTP/navitia/contents/{+path}","compare_url":"https://api.github.com/repos/CanalTP/navitia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CanalTP/navitia/merges","archive_url":"https://api.github.com/repos/CanalTP/navitia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CanalTP/navitia/downloads","issues_url":"https://api.github.com/repos/CanalTP/navitia/issues{/number}","pulls_url":"https://api.github.com/repos/CanalTP/navitia/pulls{/number}","milestones_url":"https://api.github.com/repos/CanalTP/navitia/milestones{/number}","notifications_url":"https://api.github.com/repos/CanalTP/navitia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CanalTP/navitia/labels{/name}","releases_url":"https://api.github.com/repos/CanalTP/navitia/releases{/id}","created_at":"2013-06-19T15:34:30Z","updated_at":"2015-07-18T15:00:16Z","pushed_at":"2015-07-20T17:34:39Z","git_url":"git://github.com/CanalTP/navitia.git","ssh_url":"git@github.com:CanalTP/navitia.git","clone_url":"https://github.com/CanalTP/navitia.git","svn_url":"https://github.com/CanalTP/navitia","homepage":"http://www.navitia.io","size":34669,"stargazers_count":115,"watchers_count":115,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":19,"forks":35,"open_issues":19,"watchers":115,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/1118"},"html":{"href":"https://github.com/CanalTP/navitia/pull/1118"},"issue":{"href":"https://api.github.com/repos/CanalTP/navitia/issues/1118"},"comments":{"href":"https://api.github.com/repos/CanalTP/navitia/issues/1118/comments"},"review_comments":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/1118/comments"},"review_comment":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/1118/commits"},"statuses":{"href":"https://api.github.com/repos/CanalTP/navitia/statuses/947707d0732dcdcc17c932d52971a650ce3f577a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":0,"changed_files":1}}