Fixing logging
This commit is contained in:
parent
300ba1c385
commit
5ba7d4502d
1 changed files with 2 additions and 1 deletions
|
|
@ -490,7 +490,8 @@ public class KinesisProxy implements IKinesisProxyExtended {
|
||||||
}
|
}
|
||||||
final List<Shard> dedupedShards = new ArrayList<>(new LinkedHashSet<>(shards));
|
final List<Shard> dedupedShards = new ArrayList<>(new LinkedHashSet<>(shards));
|
||||||
if (dedupedShards.size() < shards.size()) {
|
if (dedupedShards.size() < shards.size()) {
|
||||||
LOG.warn("Found duplicate child shards in ListShards response. Request ids - " + requestIds);
|
LOG.warn("Found duplicate shards in response when sync'ing from Kinesis. " +
|
||||||
|
"Request ids - " + requestIds + ". Response - " + shards);
|
||||||
}
|
}
|
||||||
this.cachedShardMap = dedupedShards.stream().collect(Collectors.toMap(Shard::getShardId, Function.identity()));
|
this.cachedShardMap = dedupedShards.stream().collect(Collectors.toMap(Shard::getShardId, Function.identity()));
|
||||||
this.lastCacheUpdateTime = Instant.now();
|
this.lastCacheUpdateTime = Instant.now();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue