Skipping ddb scan and shard sync for streams that has no shards returned from service
This commit is contained in:
parent
69a05b409b
commit
8d40e5bdd4
1 changed files with 3 additions and 0 deletions
|
|
@ -129,6 +129,9 @@ public class HierarchicalShardSyncer {
|
||||||
|
|
||||||
if (!CollectionUtils.isNullOrEmpty(latestShards)) {
|
if (!CollectionUtils.isNullOrEmpty(latestShards)) {
|
||||||
log.debug("{} - Num shards: {}", streamIdentifier, latestShards.size());
|
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);
|
final Map<String, Shard> shardIdToShardMap = constructShardIdToShardMap(latestShards);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue