[SERVER-3621] mongodump stalls dumping a sharded database when authentication is in use Created: 17/Aug/11  Updated: 11/Jul/16  Resolved: 17/Aug/11

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 1.9.2
Fix Version/s: 2.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Bernie Hackett Assignee: Kristina Chodorow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OSX Lion


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

 Description   

Use the attached script to create the database/collection. Read the comments at the head of the file for directions.

When mongod and mongos are started without --keyFile everything works fine:

$ ./mongodump -d authtest
connected to: 127.0.0.1
DATABASE: authtest to dump/authtest
authtest.system.indexes to dump/authtest/system.indexes.bson
4 objects
authtest.things to dump/authtest/things.bson
100000 objects
authtest.system.users to dump/authtest/system.users.bson
1 objects

When mongod and mongos are started with --keyFile mongodump stalls dumping the actual documents:

$ ./mongodump -d authtest -u theadmin -p adminpass
connected to: 127.0.0.1
DATABASE: authtest to dump/authtest
authtest.system.indexes to dump/authtest/system.indexes.bson
4 objects
authtest.things to dump/authtest/things.bson



 Comments   
Comment by auto [ 17/Aug/11 ]

Author:

{u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}

Message: test for dump with auth SERVER-3621
Branch: master
https://github.com/mongodb/mongo/commit/741b459171ef903afa0e8b2124c1e06072836060

Comment by Kristina Chodorow (Inactive) [ 17/Aug/11 ]

Created SERVER-3626.

Comment by auto [ 17/Aug/11 ]

Author:

{u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}

Message: make isdbgrid have similar permissions to isMaster SERVER-3621
Branch: master
https://github.com/mongodb/mongo/commit/661827cc85cbc500d7638c63b6edba947e4e84cb

Comment by Eliot Horowitz (Inactive) [ 17/Aug/11 ]

That's probably too much work for 2.0.
You can make isdbgrid public for now.
Make sure there is a case to handle exhaust in mongos

Comment by Eliot Horowitz (Inactive) [ 17/Aug/11 ]

We need to make mongos deal with exhaust, that's the real problem.
We should just clear the option going from mongos -> mongod for now.

Comment by Kristina Chodorow (Inactive) [ 17/Aug/11 ]

This is caused by there being no non-admin way to check if we are a mongos (isdbgrid) so mongodump uses the "exhaust" option. Can I make isdbgrid a public command?

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