Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
catalog/lease: prevent panic inside upsertLeaseLocked
Previously, it was possible to panic inside upsertLeaseLocked, if the stored lease was nil. This could happen in tests which are designed to instantly release dereferenced leases. For example this was seen inside: TestAsOfSystemTimeUsesCache. To address this, this patch will add defensive code to check for a valid stored lease, before clearing the session ID stored inside the lease. Fixes: #131300 Release note: None
- Loading branch information