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

mongos with stale config returns wrong results when useClientClusterCursor=true

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.9
    • None
    • Querying, Sharding
    • None
    • Fully Compatible
    • ALL
    • Hide

      Run the jstests/sharding/zero_shard_version.js testcase.
      The last find command (currently at line 172)
      assert.neq(null, testDB_s0.user.findOne(

      { x: 1 }

      ));
      fails because testDB_s0.user.findOne(

      { x: 1 }

      ) returns "null"

      Show
      Run the jstests/sharding/zero_shard_version.js testcase. The last find command (currently at line 172) assert.neq(null, testDB_s0.user.findOne( { x: 1 } )); fails because testDB_s0.user.findOne( { x: 1 } ) returns "null"
    • QuInt A (10/12/15)

    Description

      Mongos returns null result for

       db.user.findOne({x:1}) 

      When mongo has correct sharding data it returns a document.

      The bug happens when mongo caches stale config where user collection is unsharded.
      Instead of returning null mongos should receive RecvStaleConfig error and reload configuration.

      Attachments

        Activity

          People

            misha.tyulenev@mongodb.com Misha Tyulenev
            misha.tyulenev@mongodb.com Misha Tyulenev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: