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

Make allow_partial_results.js, return_partial_shards_down.js start shards as replica sets

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.2, v4.0, v3.6
    • Sprint:
      Sharding 2019-10-07

      Description

      In both allow_partial_results.js and return_partial_shards_down.js, a shard is shut down, and then a find command is run with the flag allowPartialResults set to true. When the tests are run with the shard servers as replica sets and the shard rs is stopped, they fail on the find command with the error

      Could not find host matching read preference { mode: \"primary\" }
      

      for the replica set that was shut down. It looks like there is an exception that is caught here when the shards are started as standalones that prevents the error being thrown, but it's not caught when the shards are started as replica sets.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cheahuychou.mao Cheahuychou Mao
              Reporter:
              janna.golden Janna Golden
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: