[SERVER-5210] config database not restored during dumprestore9.js test Created: 05/Mar/12  Updated: 11/Jul/16  Resolved: 05/Mar/12

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: None
Fix Version/s: 2.1.1

Type: Bug Priority: Major - P3
Reporter: Ian Whalen (Inactive) Assignee: siddharth.singh@10gen.com
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: Linux
Participants:

 Description   

shell: started program /data/slave/Linux_64bit_v8/mongo/mongorestore /data/db/dumprestore9-dump1/ --host localhost:30998 --restoreShardingConfig --forceConfigRestore
sh12192| connected to: localhost:30998
sh12192| Mon Mar  5 18:53:08 WARNING: this will drop the config database, overriding any sharding configuration you currently have.
sh12192| Mon Mar  5 18:53:08 DO NOT RUN THIS COMMAND WHILE YOUR CLUSTER IS ACTIVE
sh12192| Mon Mar  5 18:53:08 Running with --forceConfigRestore. Continuing.
sh12192| Mon Mar  5 18:53:08 Error dropping config database. Aborting
assert failed : Config data wasn't restored properly
Error: Printing Stack Trace
    at src/mongo/shell/utils.js:37:7
    at src/mongo/shell/utils.js:58:1
    at src/mongo/shell/utils.js:66:1
    at /data/slave/Linux_64bit_v8/mongo/jstests/tool/dumprestore9.js:59:1
Mon Mar  5 18:53:08 exec error: src/mongo/shell/utils.js:59 assert failed : Config data wasn't restored properly
throw msg;
      ^
 
failed to load: /data/slave/Linux_64bit_v8/mongo/jstests/tool/dumprestore9.js

http://buildbot.mongodb.org/builders/Linux%2064-bit%20v8/builds/3097/steps/test_1/logs/stdio



 Comments   
Comment by siddharth.singh@10gen.com [ 05/Mar/12 ]

Reverted my last commit (255e03216d3e75814b9f744fd27dccf93ff81611). The test should pass now. mongorestore, before restoring config db, tries to drop the config db first which this commit wasn't allowing. Will work on a way to do this without breaking mongorestore.

Comment by auto [ 05/Mar/12 ]

Author:

{u'login': u'singhsiddharth', u'name': u'Siddharth Singh', u'email': u'singhsiddharth@gmail.com'}

Message: Revert "SERVER-4992 disabled dropDatabase on "config" via mongos and via mongod, if started with --configsvr"

Broke the dumprestore.js test (SERVER-5210)

This reverts commit 255e03216d3e75814b9f744fd27dccf93ff81611.
Branch: master
https://github.com/mongodb/mongo/commit/3dc9191947727193a423d19b47c56ec4dd31feec

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