Fixing list shards bug

This commit is contained in:
Joshua Kim 2020-08-07 15:07:10 -04:00
parent 34e9016c01
commit a85ef70898

View file

@ -169,7 +169,7 @@ class KinesisShardSyncer implements ShardSyncer {
List<Shard> shards;
if(CollectionUtils.isNullOrEmpty(latestShards)) {
shards = getShardListAtInitialPosition(kinesisProxy, initialPosition);
shards = isLeaseTableEmpty ? getShardListAtInitialPosition(kinesisProxy, initialPosition) : getCompleteShardList(kinesisProxy);
} else {
shards = latestShards;
}