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

    • Fully Compatible
    • v4.2, v4.0, v3.6
    • Sharding 2019-10-07

      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.

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

              Created:
              Updated:
              Resolved: