Await replication before analyzing shard key in cardinality_and_frequency_common_tests.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • ALL
    • Storage Execution 2026-02-16
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      From the comments of BF-41134:

      I was thinking that inserts preceding calls to analyzeShardKey like this might be the culprit? I know that we ultimately send w: <nodesInTheReplSet>, but the description of SERVER-91796 (if I'm understanding it correctly) referencing SPM-3489 and my reading of the repl README's timestamp glossary make me think that that write concern isn't enough to prevent anlyzeShardKey from hitting the "gap" on a secondary between `lastApplied` and `lastWritten.`

      I'm trying to get an idea of how often this situation happens by re-running some of the failing tasks. I think a pragmatic thing to try might be to just insert some awaitReplication calls after the writes in this test and see if the issue recurs.

            Assignee:
            Malik Endsley
            Reporter:
            Malik Endsley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: