{"action":"closed","number":65,"pull_request":{"url":"https://api.github.com/repos/cloudant/couch_replicator/pulls/65","id":40504750,"html_url":"https://github.com/cloudant/couch_replicator/pull/65","diff_url":"https://github.com/cloudant/couch_replicator/pull/65.diff","patch_url":"https://github.com/cloudant/couch_replicator/pull/65.patch","issue_url":"https://api.github.com/repos/cloudant/couch_replicator/issues/65","number":65,"state":"closed","locked":false,"title":"Fix stuck changes reader in clean_mailbox","user":{"login":"davisp","id":19929,"avatar_url":"https://avatars.githubusercontent.com/u/19929?v=3","gravatar_id":"","url":"https://api.github.com/users/davisp","html_url":"https://github.com/davisp","followers_url":"https://api.github.com/users/davisp/followers","following_url":"https://api.github.com/users/davisp/following{/other_user}","gists_url":"https://api.github.com/users/davisp/gists{/gist_id}","starred_url":"https://api.github.com/users/davisp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davisp/subscriptions","organizations_url":"https://api.github.com/users/davisp/orgs","repos_url":"https://api.github.com/users/davisp/repos","events_url":"https://api.github.com/users/davisp/events{/privacy}","received_events_url":"https://api.github.com/users/davisp/received_events","type":"User","site_admin":false},"body":"Due to unfortunate timing issues it was possible for a changes reader to\r\nget stuck in clean_mailbox reading an entire changes feed before\r\nexiting. If the ibrowse call timed out right before ibrowse starts\r\nsending messages then we would see clean_mailbox loop until the changes\r\nfeed terminated on the source.\r\n\r\nThis caps the number of messagses that can be cleaned up to a maximum of\r\nsixteen. This limit is rather arbitrary. The cleanup was intended for when\r\nonly a couple messages were lingering. This is much larger than that\r\nwithout being insanely large.\r\n\r\nBugzId: 49717","created_at":"2015-07-21T21:07:02Z","updated_at":"2015-07-26T21:33:26Z","closed_at":"2015-07-26T21:33:26Z","merged_at":"2015-07-26T21:33:26Z","merge_commit_sha":"3070cb7205bb30205726ee7eac634367e5f781c0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudant/couch_replicator/pulls/65/commits","review_comments_url":"https://api.github.com/repos/cloudant/couch_replicator/pulls/65/comments","review_comment_url":"https://api.github.com/repos/cloudant/couch_replicator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudant/couch_replicator/issues/65/comments","statuses_url":"https://api.github.com/repos/cloudant/couch_replicator/statuses/8616479b782a8fe3d050895f273b64c56a3dda95","head":{"label":"cloudant:49717-fix-cleanup-mailbox","ref":"49717-fix-cleanup-mailbox","sha":"8616479b782a8fe3d050895f273b64c56a3dda95","user":{"login":"cloudant","id":44642,"avatar_url":"https://avatars.githubusercontent.com/u/44642?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudant","html_url":"https://github.com/cloudant","followers_url":"https://api.github.com/users/cloudant/followers","following_url":"https://api.github.com/users/cloudant/following{/other_user}","gists_url":"https://api.github.com/users/cloudant/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant/subscriptions","organizations_url":"https://api.github.com/users/cloudant/orgs","repos_url":"https://api.github.com/users/cloudant/repos","events_url":"https://api.github.com/users/cloudant/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant/received_events","type":"Organization","site_admin":false},"repo":{"id":4568002,"name":"couch_replicator","full_name":"cloudant/couch_replicator","owner":{"login":"cloudant","id":44642,"avatar_url":"https://avatars.githubusercontent.com/u/44642?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudant","html_url":"https://github.com/cloudant","followers_url":"https://api.github.com/users/cloudant/followers","following_url":"https://api.github.com/users/cloudant/following{/other_user}","gists_url":"https://api.github.com/users/cloudant/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant/subscriptions","organizations_url":"https://api.github.com/users/cloudant/orgs","repos_url":"https://api.github.com/users/cloudant/repos","events_url":"https://api.github.com/users/cloudant/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudant/couch_replicator","description":"","fork":false,"url":"https://api.github.com/repos/cloudant/couch_replicator","forks_url":"https://api.github.com/repos/cloudant/couch_replicator/forks","keys_url":"https://api.github.com/repos/cloudant/couch_replicator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudant/couch_replicator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudant/couch_replicator/teams","hooks_url":"https://api.github.com/repos/cloudant/couch_replicator/hooks","issue_events_url":"https://api.github.com/repos/cloudant/couch_replicator/issues/events{/number}","events_url":"https://api.github.com/repos/cloudant/couch_replicator/events","assignees_url":"https://api.github.com/repos/cloudant/couch_replicator/assignees{/user}","branches_url":"https://api.github.com/repos/cloudant/couch_replicator/branches{/branch}","tags_url":"https://api.github.com/repos/cloudant/couch_replicator/tags","blobs_url":"https://api.github.com/repos/cloudant/couch_replicator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudant/couch_replicator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudant/couch_replicator/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudant/couch_replicator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudant/couch_replicator/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudant/couch_replicator/languages","stargazers_url":"https://api.github.com/repos/cloudant/couch_replicator/stargazers","contributors_url":"https://api.github.com/repos/cloudant/couch_replicator/contributors","subscribers_url":"https://api.github.com/repos/cloudant/couch_replicator/subscribers","subscription_url":"https://api.github.com/repos/cloudant/couch_replicator/subscription","commits_url":"https://api.github.com/repos/cloudant/couch_replicator/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudant/couch_replicator/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudant/couch_replicator/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudant/couch_replicator/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudant/couch_replicator/contents/{+path}","compare_url":"https://api.github.com/repos/cloudant/couch_replicator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudant/couch_replicator/merges","archive_url":"https://api.github.com/repos/cloudant/couch_replicator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudant/couch_replicator/downloads","issues_url":"https://api.github.com/repos/cloudant/couch_replicator/issues{/number}","pulls_url":"https://api.github.com/repos/cloudant/couch_replicator/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudant/couch_replicator/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudant/couch_replicator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudant/couch_replicator/labels{/name}","releases_url":"https://api.github.com/repos/cloudant/couch_replicator/releases{/id}","created_at":"2012-06-06T02:34:51Z","updated_at":"2015-03-20T08:23:42Z","pushed_at":"2015-07-26T21:33:26Z","git_url":"git://github.com/cloudant/couch_replicator.git","ssh_url":"git@github.com:cloudant/couch_replicator.git","clone_url":"https://github.com/cloudant/couch_replicator.git","svn_url":"https://github.com/cloudant/couch_replicator","homepage":null,"size":5677,"stargazers_count":13,"watchers_count":13,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":13,"default_branch":"master"}},"base":{"label":"cloudant:master","ref":"master","sha":"a670eb5f0f20e754015fe9e7a1edbc0a36ad3258","user":{"login":"cloudant","id":44642,"avatar_url":"https://avatars.githubusercontent.com/u/44642?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudant","html_url":"https://github.com/cloudant","followers_url":"https://api.github.com/users/cloudant/followers","following_url":"https://api.github.com/users/cloudant/following{/other_user}","gists_url":"https://api.github.com/users/cloudant/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant/subscriptions","organizations_url":"https://api.github.com/users/cloudant/orgs","repos_url":"https://api.github.com/users/cloudant/repos","events_url":"https://api.github.com/users/cloudant/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant/received_events","type":"Organization","site_admin":false},"repo":{"id":4568002,"name":"couch_replicator","full_name":"cloudant/couch_replicator","owner":{"login":"cloudant","id":44642,"avatar_url":"https://avatars.githubusercontent.com/u/44642?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudant","html_url":"https://github.com/cloudant","followers_url":"https://api.github.com/users/cloudant/followers","following_url":"https://api.github.com/users/cloudant/following{/other_user}","gists_url":"https://api.github.com/users/cloudant/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant/subscriptions","organizations_url":"https://api.github.com/users/cloudant/orgs","repos_url":"https://api.github.com/users/cloudant/repos","events_url":"https://api.github.com/users/cloudant/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudant/couch_replicator","description":"","fork":false,"url":"https://api.github.com/repos/cloudant/couch_replicator","forks_url":"https://api.github.com/repos/cloudant/couch_replicator/forks","keys_url":"https://api.github.com/repos/cloudant/couch_replicator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudant/couch_replicator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudant/couch_replicator/teams","hooks_url":"https://api.github.com/repos/cloudant/couch_replicator/hooks","issue_events_url":"https://api.github.com/repos/cloudant/couch_replicator/issues/events{/number}","events_url":"https://api.github.com/repos/cloudant/couch_replicator/events","assignees_url":"https://api.github.com/repos/cloudant/couch_replicator/assignees{/user}","branches_url":"https://api.github.com/repos/cloudant/couch_replicator/branches{/branch}","tags_url":"https://api.github.com/repos/cloudant/couch_replicator/tags","blobs_url":"https://api.github.com/repos/cloudant/couch_replicator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudant/couch_replicator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudant/couch_replicator/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudant/couch_replicator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudant/couch_replicator/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudant/couch_replicator/languages","stargazers_url":"https://api.github.com/repos/cloudant/couch_replicator/stargazers","contributors_url":"https://api.github.com/repos/cloudant/couch_replicator/contributors","subscribers_url":"https://api.github.com/repos/cloudant/couch_replicator/subscribers","subscription_url":"https://api.github.com/repos/cloudant/couch_replicator/subscription","commits_url":"https://api.github.com/repos/cloudant/couch_replicator/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudant/couch_replicator/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudant/couch_replicator/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudant/couch_replicator/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudant/couch_replicator/contents/{+path}","compare_url":"https://api.github.com/repos/cloudant/couch_replicator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudant/couch_replicator/merges","archive_url":"https://api.github.com/repos/cloudant/couch_replicator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudant/couch_replicator/downloads","issues_url":"https://api.github.com/repos/cloudant/couch_replicator/issues{/number}","pulls_url":"https://api.github.com/repos/cloudant/couch_replicator/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudant/couch_replicator/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudant/couch_replicator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudant/couch_replicator/labels{/name}","releases_url":"https://api.github.com/repos/cloudant/couch_replicator/releases{/id}","created_at":"2012-06-06T02:34:51Z","updated_at":"2015-03-20T08:23:42Z","pushed_at":"2015-07-26T21:33:26Z","git_url":"git://github.com/cloudant/couch_replicator.git","ssh_url":"git@github.com:cloudant/couch_replicator.git","clone_url":"https://github.com/cloudant/couch_replicator.git","svn_url":"https://github.com/cloudant/couch_replicator","homepage":null,"size":5677,"stargazers_count":13,"watchers_count":13,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudant/couch_replicator/pulls/65"},"html":{"href":"https://github.com/cloudant/couch_replicator/pull/65"},"issue":{"href":"https://api.github.com/repos/cloudant/couch_replicator/issues/65"},"comments":{"href":"https://api.github.com/repos/cloudant/couch_replicator/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudant/couch_replicator/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudant/couch_replicator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudant/couch_replicator/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/cloudant/couch_replicator/statuses/8616479b782a8fe3d050895f273b64c56a3dda95"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"davisp","id":19929,"avatar_url":"https://avatars.githubusercontent.com/u/19929?v=3","gravatar_id":"","url":"https://api.github.com/users/davisp","html_url":"https://github.com/davisp","followers_url":"https://api.github.com/users/davisp/followers","following_url":"https://api.github.com/users/davisp/following{/other_user}","gists_url":"https://api.github.com/users/davisp/gists{/gist_id}","starred_url":"https://api.github.com/users/davisp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davisp/subscriptions","organizations_url":"https://api.github.com/users/davisp/orgs","repos_url":"https://api.github.com/users/davisp/repos","events_url":"https://api.github.com/users/davisp/events{/privacy}","received_events_url":"https://api.github.com/users/davisp/received_events","type":"User","site_admin":false},"comments":9,"review_comments":12,"commits":1,"additions":32,"deletions":4,"changed_files":1}}