Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
catalog/lease: disallow leases until range feed starts
Previusly, the lease manager allowed descriptors to be leased before the range feed was fully initialized. This was problematic because if an descriptor was updated before the range feed is started we would have no way of knowing. For example an early query during startup could fetch the system database descriptor before the range feed starts, and this could kept forever. If an upgrade bumped the descriptor version between the initial fetch and start of range feed then we could end up with a node stuck with the sale version forever. To address this, this patch forces any early lease acqusitions to wait for the range feed to start up. Fixes: cockroachdb#139837 Fixes: cockroachdb#139405 Fixes: cockroachdb#139356 Fixes: cockroachdb#139100 Release note: None
- Loading branch information