[SERVER-20422] setShardVersion configdb string mismatch during config rs upgrade Created: 15/Sep/15  Updated: 25/Jan/17  Resolved: 07/Jan/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.1.8
Fix Version/s: 3.2.3, 3.3.0

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: code-and-test, csrsupgrade
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File csrs_upgrade.js     File csrs_upgrade.js    
Issue Links:
Related
related to SERVER-21995 Queries against sharded collections f... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Sharding E (01/08/16)
Participants:

 Description   

The shard will return an error on setShardVersion if it still has the old non-repl config server string.

Example error:

Assertion: 10429:setShardVersion failed shard: csrsUpgrade-rs0:csrsUpgrade-rs0/ren-desktop:20000,ren-desktop:20001,ren-desktop:20002 { configdb: { stored: "ren-desktop:20006,\
    ren-desktop:20007,ren-desktop:20008", given: "csrs_upgrade-csrs/ren-desktop:20006,ren-desktop:20011,ren-desktop:20012" }, ok: 0.0, errmsg: "mongos specified a different config database string : stored : ren-desktop:20006,ren-deskto\
    p:20007,ren-desktop:20008 vs given : csrs_upgrade-csrs/ren-...", code: 125 }



 Comments   
Comment by Githook User [ 14/Jan/16 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-20422 SERVER-21995 Allow overriding the cached config server string in SSV after upgrade from SCCC to CSRS

(cherry picked from commit eb140e730ffdcf99f26d9f215dd4391b8978acc9)
Branch: v3.2
https://github.com/mongodb/mongo/commit/ecfe266a47498ba18db62fe97f5d4298c16e23af

Comment by Githook User [ 07/Jan/16 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-20422 SERVER-21995 Allow overriding the cached config server string in SSV after upgrade from SCCC to CSRS
Branch: master
https://github.com/mongodb/mongo/commit/eb140e730ffdcf99f26d9f215dd4391b8978acc9

Comment by Andy Schwerin [ 21/Sep/15 ]

Attached a different csrs_upgrade.js that also exposes the error, this time using findAndModify.

Comment by Randolph Tan [ 16/Sep/15 ]

Attached a modified csrs_upgrade.js that demonstrates the issue.

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