Update the warning when lease taker failed to fetch the latest state of the lease

This commit is contained in:
Yu Zeng 2022-01-03 10:19:23 -08:00
parent 72aeac3819
commit a3e51d5595

View file

@ -260,8 +260,8 @@ public class DynamoDBLeaseTaker implements LeaseTaker {
try { try {
return leaseRefresher.getLease(lease.leaseKey()); return leaseRefresher.getLease(lease.leaseKey());
} catch (DependencyException | InvalidStateException | ProvisionedThroughputException e) { } catch (DependencyException | InvalidStateException | ProvisionedThroughputException e) {
log.warn("Unable to retrieve the current lease while refreshing the stale lease, " log.warn("Failed to fetch latest state of the lease {} that needs to be stolen, "
+ "defaulting to existing lease", e); + "defaulting to existing lease", lease.leaseKey(), e);
} }
} }
return lease; return lease;