Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-91796

Make analyzeShardKey tests use w: all or awaitReplication

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc10
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v8.0
    • Cluster Scalability 2024-07-08
    • 200

      The analyzeShardKey command by default uses readConcern: "secondaryPreferred". Currently, the analyzeShardKey tests all don't specify writeConcern so they just use the default w: "majority". This covers the two nodes that each shard in those tests have. However, SPM-3489 changed w: majority to only wait for the opTime of that write to be persisted. To wait for the opTime of that write to be applied, w: <n> must be used. For this reason, all of the analyzeShardKey tests should use w: all for every write that they do.

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: