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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.1.1
    • Component/s: Sharding
    • Labels:
      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)

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

            Created:
            Updated:
            Resolved: