[SERVER-5920] bad reload of database config Created: 24/May/12  Updated: 11/Jul/16  Resolved: 11/Jun/12

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.0.4
Fix Version/s: 2.0.7, 2.1.2

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

Attachments: File bad_config_stored.js    
Issue Links:
Depends
Related
Operating System: ALL
Participants:

 Description   

A bad reload of config information when retrieving information for a database can cause a not-fully-initialized DBConfig object to remain in the shared config info. This can happen, for example, when all config servers are down.

We need to catch this error and remove the bad entry while still in the _lock if anything goes wrong while connecting.

see Grid::getDBConfig().

Affects 2.0 branch, probably 2.1.



 Comments   
Comment by auto [ 09/Jul/12 ]

Author:

{u'date': u'2012-06-12T09:13:02-07:00', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-5920 buildbot bad_config_load.js also check for socket exceptions in test

Signed-off-by: Eric Milkie <milkie@10gen.com>
Branch: v2.0
https://github.com/mongodb/mongo/commit/b0e8e2bfa99cd6c7c197936d0b9859295c8ab1d4

Comment by auto [ 03/Jul/12 ]

Author:

{u'date': u'2012-06-11T06:56:07-07:00', u'email': u'greg@10gen.com', u'name': u'Greg Studer'}

Message: SERVER-5920 protect reload of database config, ensure we don't get partial dbconfig objs
Branch: v2.0
https://github.com/mongodb/mongo/commit/17c3a2c3a705fea3e1f4588fc1890e87043220ca

Comment by auto [ 12/Jun/12 ]

Author:

{u'date': u'2012-06-12T09:13:02-07:00', u'email': u'greg@10gen.com', u'name': u'Greg Studer'}

Message: SERVER-5920 buildbot bad_config_load.js also check for socket exceptions in test
Branch: master
https://github.com/mongodb/mongo/commit/72e7302efc3a87b33ac5b833d3cc21087648fa00

Comment by auto [ 11/Jun/12 ]

Author:

{u'login': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-5920 protect reload of database config, ensure we don't get partial dbconfig objs
Branch: master
https://github.com/mongodb/mongo/commit/936c03f4adab997257057458a9cb730753712d8a

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