if (lease != null) {
String checkpoint = lease.getCheckpoint();
if ((checkpoint == null) || (!checkpoint.equals(SentinelCheckpoint.SHARD_END.toString()))) {
LOG.debug("Shard " + shardId + " is not yet done. Its current checkpoint is " + checkpoint);
blockedOnParentShard = true;
exception = new BlockedOnParentShardException("Parent shard not yet done");
break;
} else {
LOG.debug("Shard " + shardId + " has been completely processed.");
}
} else {