We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d480f2a + f27bba0 commit 16c4fa2Copy full SHA for 16c4fa2
pkg/sql/catalog/lease/lease.go
@@ -1277,6 +1277,11 @@ func (m *Manager) purgeOldVersions(
1277
}
1278
// We encountered an error telling us to renew the lease.
1279
newest := m.findNewest(id)
1280
+ // It is possible that a concurrent drop / removal of this descriptor is
1281
+ // occurring. If the newest version just doesn't exist, bail out.
1282
+ if newest == nil {
1283
+ break
1284
+ }
1285
// Assert this should never happen due to a fixed expiration, since the range
1286
// feed is responsible for purging old versions and acquiring new versions.
1287
if newest.hasFixedExpiration() {
0 commit comments