Skip to content

Commit

Permalink
SERVER-90727 Fixes analyze_shard_key.js test to ignore missing sample…
Browse files Browse the repository at this point in the history
…d docs (#22418)

GitOrigin-RevId: e8d9c990d4a98e6397fc8199942efa4e0d006329
  • Loading branch information
israelhsu authored and MongoDB Bot committed May 31, 2024
1 parent 8c8e9e9 commit eac81fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jstests/concurrency/fsm_workloads/analyze_shard_key.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,14 @@ export const $config = extendWorkload(kBaseConfig, function($config, $super) {
// Inaccurate fast count is only expected when there is unclean shutdown.
return TestData.runningWithShardStepdowns;
}
// TODO SERVER-91030: Remove special handling of error code 7826507.
if (err.code == 7826507) {
print(
`Failed to analyze the shard key because the number of sampled documents is zero. ${
tojsononeline(err)}`);
// This may be due to chunk migrations.
return true;
}
if (err.code == ErrorCodes.IllegalOperation && err.errmsg &&
err.errmsg.includes("monotonicity") && err.errmsg.includes("empty collection")) {
print(`Failed to analyze the shard key because the fast count during the ` +
Expand Down

0 comments on commit eac81fb

Please sign in to comment.