Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not retrieved closed shards #16

Merged
merged 1 commit into from
Jul 2, 2015

Conversation

jtblin
Copy link
Contributor

@jtblin jtblin commented Jul 1, 2015

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()

The ending sequence number for the range. Shards that are in the OPEN state have an ending sequence number of null.

@mhart
Copy link
Owner

mhart commented Jul 2, 2015

Perfect – I also still need to deal with splits and merges correctly as per #11 – haven't had time to look at this recently.

mhart added a commit that referenced this pull request Jul 2, 2015
@mhart mhart merged commit be3e101 into mhart:master Jul 2, 2015
@mhart
Copy link
Owner

mhart commented Jul 2, 2015

Published as v1.2.2 – thanks again for the PR 👍

@jtblin
Copy link
Contributor Author

jtblin commented Jul 2, 2015

Thanks for the quick merge and great lib! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants