Fixing list shards bug
This commit is contained in:
parent
34e9016c01
commit
a85ef70898
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ class KinesisShardSyncer implements ShardSyncer {
|
||||||
|
|
||||||
List<Shard> shards;
|
List<Shard> shards;
|
||||||
if(CollectionUtils.isNullOrEmpty(latestShards)) {
|
if(CollectionUtils.isNullOrEmpty(latestShards)) {
|
||||||
shards = getShardListAtInitialPosition(kinesisProxy, initialPosition);
|
shards = isLeaseTableEmpty ? getShardListAtInitialPosition(kinesisProxy, initialPosition) : getCompleteShardList(kinesisProxy);
|
||||||
} else {
|
} else {
|
||||||
shards = latestShards;
|
shards = latestShards;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue