Make some more explain commands retryable in tests

XMLWordPrintableJSON

    • Query Execution
    • Fully Compatible
    • ALL
    • QE 2025-08-04
    • 0
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      BF-37470 contains an instance of an unexpected result for an explain query in a sharded cluster.
      The test assumes a specific value (4) in the nWouldDelete field in the explain results, but the actual return value was 0.

      The explain result also contained the executionSuccess: false value for at least one of the shards, meaning that the explain did not execute successfully on the shard and its results can be incomplete.

      gregory.noma@mongodb.com already added a retry mechanism for some explain commands to jstests/libs/override_methods/network_error_and_txn_override.js in SERVER-103057, which potentially helps all those tests that are using this override.

      The test that failed in BF-37470 timeseries_explain_delete.js however uses a different override, jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js, which does not retry an explain command if it fails on one of the shards.

      We should adjust the jstests/libs/override_methods/implicitly_retry_on_migration_in_progress.js override to also retry failed explains if possible. This hopefully reduces the occurrences of similar BFs for all tests that use this override.

              Assignee:
              Jan Steemann
              Reporter:
              Jan Steemann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: