-
Notifications
You must be signed in to change notification settings - Fork 87
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
ListShards Failure With Large Number of Shards #109
Labels
Comments
The documentation is wrong, it is definitely 1,000 shards. |
To anyone reading this, maxresults is indeed max 10k. It Defaults to 1k. So, to fix this, supply |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have a stream with a large number of shards, you get an error that says, "[BROKER] ListShards error: InvalidArgumentException: NextToken and StreamName cannot be provided together."
The AWS docs say, "Don't specify StreamName or StreamCreationTimestamp if you specify NextToken because the latter unambiguously identifies the stream."
https://docs.aws.amazon.com/kinesis/latest/APIReference/API_ListShards.html
This shouldn't happen unless the number of shards is greater than the default value for MaxResults which is 10,000. But I'm seeing it in a stream with 1,266 shards (including closed ones).
I'm using version 0.3.2 of the library.
The text was updated successfully, but these errors were encountered: