Skip to content

Commit

Permalink
Fixing bug where ShardFilter parameter for ListShards was being passe…
Browse files Browse the repository at this point in the history
…d in for paginated calls. (#790)

Co-authored-by: Joshua Kim <kimjos@amazon.com>
  • Loading branch information
joshua-kim and Joshua Kim authored Feb 24, 2021
1 parent b4f6f8f commit a13ed13
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,12 @@ private ListShardsResult listShards(final ShardFilter shardFilter, final String
request.setRequestCredentials(credentialsProvider.getCredentials());
if (StringUtils.isEmpty(nextToken)) {
request.setStreamName(streamName);
request.setShardFilter(shardFilter);
} else {
request.setNextToken(nextToken);
}

if (shardFilter != null) {
request.setShardFilter(shardFilter);
}
LOG.info("Listing shards with list shards request " + request);

ListShardsResult result = null;
LimitExceededException lastException = null;
Expand Down

0 comments on commit a13ed13

Please sign in to comment.