Fixing bug where ShardFilter parameter for ListShards was being passed in for paginated calls. (#790)
Co-authored-by: Joshua Kim <kimjos@amazon.com>
This commit is contained in:
parent
b4f6f8fffb
commit
a13ed13702
1 changed files with 2 additions and 3 deletions
|
|
@ -315,13 +315,12 @@ public class KinesisProxy implements IKinesisProxyExtended {
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue