Adding logging
This commit is contained in:
parent
dc078ead39
commit
445dd106b2
1 changed files with 6 additions and 1 deletions
|
|
@ -157,7 +157,12 @@ public class LeaseCleanupManager {
|
||||||
if (CollectionUtils.isNullOrEmpty(childShardKeys)) {
|
if (CollectionUtils.isNullOrEmpty(childShardKeys)) {
|
||||||
try {
|
try {
|
||||||
childShardKeys = getChildShardsFromService(shardInfo, streamIdentifier);
|
childShardKeys = getChildShardsFromService(shardInfo, streamIdentifier);
|
||||||
updateLeaseWithChildShards(leasePendingDeletion, childShardKeys);
|
|
||||||
|
if (childShardKeys == null) {
|
||||||
|
log.error("No child shards returned from service for shard {} for {}.", shardInfo.shardId(), streamIdentifier.streamName());
|
||||||
|
} else {
|
||||||
|
updateLeaseWithChildShards(leasePendingDeletion, childShardKeys);
|
||||||
|
}
|
||||||
} catch (ExecutionException e) {
|
} catch (ExecutionException e) {
|
||||||
throw exceptionManager.apply(e.getCause());
|
throw exceptionManager.apply(e.getCause());
|
||||||
} finally {
|
} finally {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue