{"action":"closed","number":16,"pull_request":{"url":"https://api.github.com/repos/mhart/kinesis/pulls/16","id":39035990,"html_url":"https://github.com/mhart/kinesis/pull/16","diff_url":"https://github.com/mhart/kinesis/pull/16.diff","patch_url":"https://github.com/mhart/kinesis/pull/16.patch","issue_url":"https://api.github.com/repos/mhart/kinesis/issues/16","number":16,"state":"closed","locked":false,"title":"Do not retrieved closed shards","user":{"login":"jtblin","id":1388974,"avatar_url":"https://avatars.githubusercontent.com/u/1388974?v=3","gravatar_id":"","url":"https://api.github.com/users/jtblin","html_url":"https://github.com/jtblin","followers_url":"https://api.github.com/users/jtblin/followers","following_url":"https://api.github.com/users/jtblin/following{/other_user}","gists_url":"https://api.github.com/users/jtblin/gists{/gist_id}","starred_url":"https://api.github.com/users/jtblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtblin/subscriptions","organizations_url":"https://api.github.com/users/jtblin/orgs","repos_url":"https://api.github.com/users/jtblin/repos","events_url":"https://api.github.com/users/jtblin/events{/privacy}","received_events_url":"https://api.github.com/users/jtblin/received_events","type":"User","site_admin":false},"body":"At the moment, the lib will return shards even if they are closed which is not desirable as you can't stream from a closed shard obviously. The only way to detect if a shard is closed is verifying if there is an ending sequence number, see http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/kinesis/model/SequenceNumberRange.html#getEndingSequenceNumber()\r\n\r\n> The ending sequence number for the range. Shards that are in the OPEN state have an ending sequence number of null.","created_at":"2015-07-01T23:38:25Z","updated_at":"2015-07-02T02:24:12Z","closed_at":"2015-07-02T02:24:12Z","merged_at":"2015-07-02T02:24:12Z","merge_commit_sha":"5900a6d895d85810db813da6a63fe81635adf5a9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mhart/kinesis/pulls/16/commits","review_comments_url":"https://api.github.com/repos/mhart/kinesis/pulls/16/comments","review_comment_url":"https://api.github.com/repos/mhart/kinesis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mhart/kinesis/issues/16/comments","statuses_url":"https://api.github.com/repos/mhart/kinesis/statuses/ed836b5ca8987d8def0ce29dde6f9e0682b16402","head":{"label":"atlassian:do-not-retrieve-closed-shards","ref":"do-not-retrieve-closed-shards","sha":"ed836b5ca8987d8def0ce29dde6f9e0682b16402","user":{"login":"atlassian","id":168166,"avatar_url":"https://avatars.githubusercontent.com/u/168166?v=3","gravatar_id":"","url":"https://api.github.com/users/atlassian","html_url":"https://github.com/atlassian","followers_url":"https://api.github.com/users/atlassian/followers","following_url":"https://api.github.com/users/atlassian/following{/other_user}","gists_url":"https://api.github.com/users/atlassian/gists{/gist_id}","starred_url":"https://api.github.com/users/atlassian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atlassian/subscriptions","organizations_url":"https://api.github.com/users/atlassian/orgs","repos_url":"https://api.github.com/users/atlassian/repos","events_url":"https://api.github.com/users/atlassian/events{/privacy}","received_events_url":"https://api.github.com/users/atlassian/received_events","type":"Organization","site_admin":false},"repo":{"id":36407265,"name":"kinesis","full_name":"atlassian/kinesis","owner":{"login":"atlassian","id":168166,"avatar_url":"https://avatars.githubusercontent.com/u/168166?v=3","gravatar_id":"","url":"https://api.github.com/users/atlassian","html_url":"https://github.com/atlassian","followers_url":"https://api.github.com/users/atlassian/followers","following_url":"https://api.github.com/users/atlassian/following{/other_user}","gists_url":"https://api.github.com/users/atlassian/gists{/gist_id}","starred_url":"https://api.github.com/users/atlassian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atlassian/subscriptions","organizations_url":"https://api.github.com/users/atlassian/orgs","repos_url":"https://api.github.com/users/atlassian/repos","events_url":"https://api.github.com/users/atlassian/events{/privacy}","received_events_url":"https://api.github.com/users/atlassian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atlassian/kinesis","description":"A Node.js stream implementation of Amazon's Kinesis","fork":true,"url":"https://api.github.com/repos/atlassian/kinesis","forks_url":"https://api.github.com/repos/atlassian/kinesis/forks","keys_url":"https://api.github.com/repos/atlassian/kinesis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atlassian/kinesis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atlassian/kinesis/teams","hooks_url":"https://api.github.com/repos/atlassian/kinesis/hooks","issue_events_url":"https://api.github.com/repos/atlassian/kinesis/issues/events{/number}","events_url":"https://api.github.com/repos/atlassian/kinesis/events","assignees_url":"https://api.github.com/repos/atlassian/kinesis/assignees{/user}","branches_url":"https://api.github.com/repos/atlassian/kinesis/branches{/branch}","tags_url":"https://api.github.com/repos/atlassian/kinesis/tags","blobs_url":"https://api.github.com/repos/atlassian/kinesis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atlassian/kinesis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atlassian/kinesis/git/refs{/sha}","trees_url":"https://api.github.com/repos/atlassian/kinesis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atlassian/kinesis/statuses/{sha}","languages_url":"https://api.github.com/repos/atlassian/kinesis/languages","stargazers_url":"https://api.github.com/repos/atlassian/kinesis/stargazers","contributors_url":"https://api.github.com/repos/atlassian/kinesis/contributors","subscribers_url":"https://api.github.com/repos/atlassian/kinesis/subscribers","subscription_url":"https://api.github.com/repos/atlassian/kinesis/subscription","commits_url":"https://api.github.com/repos/atlassian/kinesis/commits{/sha}","git_commits_url":"https://api.github.com/repos/atlassian/kinesis/git/commits{/sha}","comments_url":"https://api.github.com/repos/atlassian/kinesis/comments{/number}","issue_comment_url":"https://api.github.com/repos/atlassian/kinesis/issues/comments{/number}","contents_url":"https://api.github.com/repos/atlassian/kinesis/contents/{+path}","compare_url":"https://api.github.com/repos/atlassian/kinesis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atlassian/kinesis/merges","archive_url":"https://api.github.com/repos/atlassian/kinesis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atlassian/kinesis/downloads","issues_url":"https://api.github.com/repos/atlassian/kinesis/issues{/number}","pulls_url":"https://api.github.com/repos/atlassian/kinesis/pulls{/number}","milestones_url":"https://api.github.com/repos/atlassian/kinesis/milestones{/number}","notifications_url":"https://api.github.com/repos/atlassian/kinesis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atlassian/kinesis/labels{/name}","releases_url":"https://api.github.com/repos/atlassian/kinesis/releases{/id}","created_at":"2015-05-28T01:36:31Z","updated_at":"2015-05-28T01:36:32Z","pushed_at":"2015-07-01T23:35:49Z","git_url":"git://github.com/atlassian/kinesis.git","ssh_url":"git@github.com:atlassian/kinesis.git","clone_url":"https://github.com/atlassian/kinesis.git","svn_url":"https://github.com/atlassian/kinesis","homepage":null,"size":263,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"master"}},"base":{"label":"mhart:master","ref":"master","sha":"616ed50812ffa7b2ab329f47a217ef295e45f486","user":{"login":"mhart","id":367936,"avatar_url":"https://avatars.githubusercontent.com/u/367936?v=3","gravatar_id":"","url":"https://api.github.com/users/mhart","html_url":"https://github.com/mhart","followers_url":"https://api.github.com/users/mhart/followers","following_url":"https://api.github.com/users/mhart/following{/other_user}","gists_url":"https://api.github.com/users/mhart/gists{/gist_id}","starred_url":"https://api.github.com/users/mhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhart/subscriptions","organizations_url":"https://api.github.com/users/mhart/orgs","repos_url":"https://api.github.com/users/mhart/repos","events_url":"https://api.github.com/users/mhart/events{/privacy}","received_events_url":"https://api.github.com/users/mhart/received_events","type":"User","site_admin":false},"repo":{"id":14408127,"name":"kinesis","full_name":"mhart/kinesis","owner":{"login":"mhart","id":367936,"avatar_url":"https://avatars.githubusercontent.com/u/367936?v=3","gravatar_id":"","url":"https://api.github.com/users/mhart","html_url":"https://github.com/mhart","followers_url":"https://api.github.com/users/mhart/followers","following_url":"https://api.github.com/users/mhart/following{/other_user}","gists_url":"https://api.github.com/users/mhart/gists{/gist_id}","starred_url":"https://api.github.com/users/mhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhart/subscriptions","organizations_url":"https://api.github.com/users/mhart/orgs","repos_url":"https://api.github.com/users/mhart/repos","events_url":"https://api.github.com/users/mhart/events{/privacy}","received_events_url":"https://api.github.com/users/mhart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mhart/kinesis","description":"A Node.js stream implementation of Amazon's Kinesis","fork":false,"url":"https://api.github.com/repos/mhart/kinesis","forks_url":"https://api.github.com/repos/mhart/kinesis/forks","keys_url":"https://api.github.com/repos/mhart/kinesis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mhart/kinesis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mhart/kinesis/teams","hooks_url":"https://api.github.com/repos/mhart/kinesis/hooks","issue_events_url":"https://api.github.com/repos/mhart/kinesis/issues/events{/number}","events_url":"https://api.github.com/repos/mhart/kinesis/events","assignees_url":"https://api.github.com/repos/mhart/kinesis/assignees{/user}","branches_url":"https://api.github.com/repos/mhart/kinesis/branches{/branch}","tags_url":"https://api.github.com/repos/mhart/kinesis/tags","blobs_url":"https://api.github.com/repos/mhart/kinesis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mhart/kinesis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mhart/kinesis/git/refs{/sha}","trees_url":"https://api.github.com/repos/mhart/kinesis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mhart/kinesis/statuses/{sha}","languages_url":"https://api.github.com/repos/mhart/kinesis/languages","stargazers_url":"https://api.github.com/repos/mhart/kinesis/stargazers","contributors_url":"https://api.github.com/repos/mhart/kinesis/contributors","subscribers_url":"https://api.github.com/repos/mhart/kinesis/subscribers","subscription_url":"https://api.github.com/repos/mhart/kinesis/subscription","commits_url":"https://api.github.com/repos/mhart/kinesis/commits{/sha}","git_commits_url":"https://api.github.com/repos/mhart/kinesis/git/commits{/sha}","comments_url":"https://api.github.com/repos/mhart/kinesis/comments{/number}","issue_comment_url":"https://api.github.com/repos/mhart/kinesis/issues/comments{/number}","contents_url":"https://api.github.com/repos/mhart/kinesis/contents/{+path}","compare_url":"https://api.github.com/repos/mhart/kinesis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mhart/kinesis/merges","archive_url":"https://api.github.com/repos/mhart/kinesis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mhart/kinesis/downloads","issues_url":"https://api.github.com/repos/mhart/kinesis/issues{/number}","pulls_url":"https://api.github.com/repos/mhart/kinesis/pulls{/number}","milestones_url":"https://api.github.com/repos/mhart/kinesis/milestones{/number}","notifications_url":"https://api.github.com/repos/mhart/kinesis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mhart/kinesis/labels{/name}","releases_url":"https://api.github.com/repos/mhart/kinesis/releases{/id}","created_at":"2013-11-14T21:56:54Z","updated_at":"2015-06-24T05:47:42Z","pushed_at":"2015-07-02T02:24:12Z","git_url":"git://github.com/mhart/kinesis.git","ssh_url":"git@github.com:mhart/kinesis.git","clone_url":"https://github.com/mhart/kinesis.git","svn_url":"https://github.com/mhart/kinesis","homepage":null,"size":309,"stargazers_count":67,"watchers_count":67,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":3,"forks":13,"open_issues":3,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mhart/kinesis/pulls/16"},"html":{"href":"https://github.com/mhart/kinesis/pull/16"},"issue":{"href":"https://api.github.com/repos/mhart/kinesis/issues/16"},"comments":{"href":"https://api.github.com/repos/mhart/kinesis/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/mhart/kinesis/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/mhart/kinesis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mhart/kinesis/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/mhart/kinesis/statuses/ed836b5ca8987d8def0ce29dde6f9e0682b16402"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mhart","id":367936,"avatar_url":"https://avatars.githubusercontent.com/u/367936?v=3","gravatar_id":"","url":"https://api.github.com/users/mhart","html_url":"https://github.com/mhart","followers_url":"https://api.github.com/users/mhart/followers","following_url":"https://api.github.com/users/mhart/following{/other_user}","gists_url":"https://api.github.com/users/mhart/gists{/gist_id}","starred_url":"https://api.github.com/users/mhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhart/subscriptions","organizations_url":"https://api.github.com/users/mhart/orgs","repos_url":"https://api.github.com/users/mhart/repos","events_url":"https://api.github.com/users/mhart/events{/privacy}","received_events_url":"https://api.github.com/users/mhart/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":1}}