SERVER-123935 limit ingress move chunks and conflict generated by concurrent move chunks executed in parallel (#51687)
GitOrigin-RevId: 3921358bcfd57c2086d08f92727dea5faf2a7e86
This commit is contained in:
parent
87702267d1
commit
765dd09506
@ -36,6 +36,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -36,6 +36,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -36,6 +36,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -35,6 +35,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -35,6 +35,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -35,6 +35,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -38,6 +38,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -38,6 +38,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -38,6 +38,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -37,6 +37,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -37,6 +37,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -37,6 +37,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -37,6 +37,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -37,6 +37,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -37,6 +37,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -36,6 +36,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -36,6 +36,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -36,6 +36,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -35,6 +35,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -35,6 +35,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -35,6 +35,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -35,6 +35,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
skipCheckOrphans: true
|
||||
threadOverrides:
|
||||
|
||||
@ -33,6 +33,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
skipCheckOrphans: true
|
||||
threadOverrides:
|
||||
|
||||
@ -35,6 +35,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
skipCheckOrphans: true
|
||||
threadOverrides:
|
||||
|
||||
@ -34,6 +34,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
pairwiseIrs: true
|
||||
threadOverrides:
|
||||
|
||||
@ -34,6 +34,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
pairwiseIrs: true
|
||||
threadOverrides:
|
||||
|
||||
@ -34,6 +34,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
pairwiseIrs: true
|
||||
threadOverrides:
|
||||
|
||||
@ -32,6 +32,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -32,6 +32,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -32,6 +32,7 @@ executor:
|
||||
migrationRetryExtraDDLErrors:
|
||||
- ReshardCollectionInterruptedDueToFCVChange
|
||||
- Interrupted
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryMatchFCVErrors: true
|
||||
threadOverrides:
|
||||
- jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js
|
||||
|
||||
@ -85,6 +85,7 @@
|
||||
global_vars:
|
||||
TestData:
|
||||
enableBgMutator: true
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryExtraDDLCommands:
|
||||
- "drop"
|
||||
- "dropDatabase"
|
||||
|
||||
@ -18,6 +18,7 @@ executor:
|
||||
await import('jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js');
|
||||
global_vars:
|
||||
TestData:
|
||||
migrationRetryJitterMS: 2000
|
||||
migrationRetryExtraDDLCommands:
|
||||
- "drop"
|
||||
- "dropDatabase"
|
||||
|
||||
@ -28,6 +28,7 @@ const MigrationRetryConfig = {
|
||||
]),
|
||||
queryErrors: new Set([ErrorCodes.QueryPlanKilled]),
|
||||
matchFCVErrors: TestData.migrationRetryMatchFCVErrors || false,
|
||||
retryJitterMS: TestData.migrationRetryJitterMS || 0,
|
||||
};
|
||||
|
||||
function _runAndExhaustQueryWithRetryUponMigration(conn, commandName, commandObj, func, makeFuncArgs) {
|
||||
@ -107,6 +108,10 @@ function _runDDLCommandWithRetryUponMigration(conn, commandName, commandObj, fun
|
||||
|
||||
let commandResponse;
|
||||
let attempt = 0;
|
||||
let interval;
|
||||
if (MigrationRetryConfig.retryJitterMS) {
|
||||
interval = 500 + Math.floor(Math.random() * MigrationRetryConfig.retryJitterMS);
|
||||
}
|
||||
|
||||
assert.soon(
|
||||
() => {
|
||||
@ -144,6 +149,8 @@ function _runDDLCommandWithRetryUponMigration(conn, commandName, commandObj, fun
|
||||
return kNoRetry;
|
||||
},
|
||||
() => "Timed out while retrying command '" + tojson(commandObj) + "', response: " + tojson(commandResponse),
|
||||
undefined,
|
||||
interval,
|
||||
);
|
||||
|
||||
return commandResponse;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user