SERVER-108354 Add StaleConfig as retryable error for timeseries_create_indexes.js (#39287) (#42018)

GitOrigin-RevId: 115cd28412f4840c7e1a48ffc2a4fc557bcb2edd
This commit is contained in:
Damian Wasilewicz 2025-10-29 17:14:56 -04:00 committed by MongoDB Bot
parent d4511d28ec
commit 48ae227c07

View File

@ -80,6 +80,9 @@ export const $config = (function() {
// TODO SERVER-85548 remove after legacy timeseries
ErrorCodes.NamespaceNotFound,
ErrorCodes.NoProgressMade,
// Can occur when mongos exhausts its retries on StaleConfig errors from the
// shard and returns the StaleConfig error to the client.
ErrorCodes.StaleConfig,
]);
},
drop: function(db, collName) {
@ -119,6 +122,9 @@ export const $config = (function() {
ErrorCodes.CannotImplicitlyCreateCollection,
// TODO SERVER-104712 remove the following exected error
10195200,
// Can occur when mongos exhausts its retries on StaleConfig errors from the shard
// and returns the StaleConfig error to the client.
ErrorCodes.StaleConfig,
]);
},
checkIndexes: function(db, collName) {