chore: log RemoveLeaseOwner errors with debug instead of error

Signed-off-by: Shiva Pentakota <spentakota@vmware.com>
This commit is contained in:
Shiva Pentakota 2023-01-31 10:18:15 -08:00
parent 42881449ce
commit f879712f9d

View file

@ -66,7 +66,7 @@ func (sc *commonShardConsumer) releaseLease(shard string) {
// Release the lease by wiping out the lease owner for the shard
// Note: we don't need to do anything in case of error here and shard lease will eventually be expired.
if err := sc.checkpointer.RemoveLeaseOwner(sc.shard.ID); err != nil {
log.Errorf("Failed to release shard lease or shard: %s Error: %+v", sc.shard.ID, err)
log.Debugf("Failed to release shard lease or shard: %s Error: %+v", sc.shard.ID, err)
}
// reporting lease lose metrics