[SERVER-20855] Don't replace the ShardRegistry with older information than it already knows about Created: 09/Oct/15  Updated: 25/Jan/17  Resolved: 12/Oct/15

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding B (10/30/15)
Participants:
Linked BF Score: 0

 Description   

If two calls to ShardRegistry::reload() overlap, it's possible for one that started sooner and targeted a staler node to finish after one that started later. This means that the ShardRegistry could already have been loaded with newer data, but then throw it out and replace it with older data when the slower reload finishes.



 Comments   
Comment by Githook User [ 12/Oct/15 ]

Author:

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

Message: SERVER-20855 Don't update ShardRegistry with staler information than it currently has
Branch: master
https://github.com/mongodb/mongo/commit/4b71fa950fb478d7d5e8c00ad9ec0292df5a6177

Comment by Githook User [ 12/Oct/15 ]

Author:

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

Message: SERVER-20855 Change CatalogManager::getAllShards to return the config OpTime the shards were loaded at
Branch: master
https://github.com/mongodb/mongo/commit/161225e82c94d29bb0553b6fdf84ff2b2646f492

Comment by Githook User [ 12/Oct/15 ]

Author:

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

Message: SERVER-20855 Small cleanups and logging improvements
Branch: master
https://github.com/mongodb/mongo/commit/48689389f7e62f6605fe1d950d5149876515c497

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