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

First reads can be routed to the wrong shard if collection is sharded by other mongos

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.1.1
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • Hide

      Add:

      testDB2.adminCommand({ movePrimary: 'test', to: 'test-rs0' });
      

      just one line above the shardCollection command here:

      https://github.com/mongodb/mongo/blob/r3.1.2/jstests/sharding/read_pref_multi_mongos_stale_config.js#L16

      and run the test.

      Show
      Add: testDB2.adminCommand({ movePrimary: 'test', to: 'test-rs0' }); just one line above the shardCollection command here: https://github.com/mongodb/mongo/blob/r3.1.2/jstests/sharding/read_pref_multi_mongos_stale_config.js#L16 and run the test.
    • Sharding 2 04/24/15, Sharding 3 05/15/15, Sharding 4 06/05/15, Sharding 5 06/26/16, Sharding 6 07/17/15, Sharding 9 (09/18/15), Sharding A (10/09/15)

    Attachments

      Activity

        People

          randolph@mongodb.com Randolph Tan
          randolph@mongodb.com Randolph Tan
          Votes:
          0 Vote for this issue
          Watchers:
          4 Start watching this issue

          Dates

            Created:
            Updated:
            Resolved: