Merge pull request #62 from ashwing/ltr_1_skip_shardsync_on_empty_stream_shards
Skipping ddb scan and shard sync for streams that has no shards retur…
This commit is contained in:
commit
7bb60b0c69
1 changed files with 3 additions and 0 deletions
|
|
@ -129,6 +129,9 @@ public class HierarchicalShardSyncer {
|
|||
|
||||
if (!CollectionUtils.isNullOrEmpty(latestShards)) {
|
||||
log.debug("{} - Num shards: {}", streamIdentifier, latestShards.size());
|
||||
} else {
|
||||
log.warn("Skipping shard sync for {} as no shards found from service.", streamIdentifier);
|
||||
return;
|
||||
}
|
||||
|
||||
final Map<String, Shard> shardIdToShardMap = constructShardIdToShardMap(latestShards);
|
||||
|
|
|
|||
Loading…
Reference in a new issue