[SERVER-20530] mongos with stale config returns wrong results when useClientClusterCursor=true Created: 21/Sep/15  Updated: 07/Oct/15  Resolved: 24/Sep/15

Status: Closed
Project: Core Server
Component/s: Querying, Sharding
Affects Version/s: None
Fix Version/s: 3.1.9

Type: Bug Priority: Major - P3
Reporter: Misha Tyulenev Assignee: Misha Tyulenev
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

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"

Sprint: QuInt A (10/12/15)
Participants:

 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.



 Comments   
Comment by Githook User [ 25/Sep/15 ]

Author:

{u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}

Message: SERVER-20530 Disable useCCC in coll_epoch_test1.js

Reverts changes to coll_epoch_test1.js from a6ccf45d.
Branch: master
https://github.com/mongodb/mongo/commit/9b96ee5e6316d5f1bb1d2f49920574a934c18969

Comment by Githook User [ 24/Sep/15 ]

Author:

{u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}

Message: SERVER-20530 SERVER-20568 Disable useCCC in sharding_balance4.js

Reverts changes to sharding_balance4.js from a6ccf45d.
Branch: master
https://github.com/mongodb/mongo/commit/11febdeeb39c8dbcda39f22e6860cb434f3d64a6

Comment by Githook User [ 24/Sep/15 ]

Author:

{u'username': u'mikety', u'name': u'Misha Tyulenev', u'email': u'misha@mongodb.com'}

Message: SERVER-20530 enable useClusterClientCursor code path for fixed jstests
Branch: master
https://github.com/mongodb/mongo/commit/3ccc759d5c101104ca2dd584993ee27b8c209ad3

Comment by Githook User [ 24/Sep/15 ]

Author:

{u'username': u'mikety', u'name': u'Misha Tyulenev', u'email': u'misha@mongodb.com'}

Message: SERVER-20530 SERVER-20568 mongos with stale config returns wrong results
Branch: master
https://github.com/mongodb/mongo/commit/a6ccf45d2a6239604cdbf820b9db5cb6d45e851e

Generated at Thu Feb 08 03:54:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.