SERVER-125958 catalog_list_operations_consistency_validator: retry on CommandNotSupportedOnLegacyTimeseriesBucketsNamespace (#53155)
GitOrigin-RevId: 334bdd1c94fb4d827f6ed1cfe2ac0a296eeea8c9
This commit is contained in:
parent
3ba98e8a69
commit
ba5c2c61b6
@ -750,6 +750,15 @@ export function assertCatalogListOperationsConsistencyForDb(db, tenantId) {
|
||||
if (ex.code === ErrorCodes.InterruptedDueToReplStateChange) {
|
||||
return false;
|
||||
}
|
||||
// When the BlockDirectSystemBucketsAccess feature flag is enabled, the server rejects
|
||||
// all commands on legacy system.buckets timeseries collections, including `listIndexes`.
|
||||
// This is transient: on retry, either the upgrade to viewless completes and
|
||||
// listCollections stops returning the buckets namespace, or the feature flag is
|
||||
// detected as enabled and `skipLegacyBucketsForListIndexes` filters it out.
|
||||
// TODO(SERVER-106164): Remove this workaround once legacy buckets namespaces are gone.
|
||||
if (ex.code === ErrorCodes.CommandNotSupportedOnLegacyTimeseriesBucketsNamespace) {
|
||||
return false;
|
||||
}
|
||||
throw ex;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user