Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Cannot Reproduce
-
2.4.7
-
None
-
None
-
None
Description
In mongo docs is written that "In MongoDB 2.2, compact blocks activities only for its database." and "You may view the intermediate progress (...) by running the db.currentOp() in another shell instance."
http://docs.mongodb.org/manual/reference/command/compact/
That's not true when authentication is enabled because you can't authenticate against the admin database and you can't run db.currentOp() without being authenticated.
$ mongo s230:27017
|
MongoDB shell version: 2.4.8
|
connecting to: s230:27017/test
|
> db.currentOp()
|
{ "ok" : 0, "errmsg" : "unauthorized" }
|
> use admin
|
switched to db admin
|
> db.auth("admin", "xxxxx")//this blocks while compact is running!
|
This is quite annoying because we can't check the server status while compact is running.
Btw. MMS shows the server also (wrongly) as DOWN while compact is running!
Attachments
Issue Links
- related to
-
SERVER-10000 Can't connect to mongod when another DB is being compacted (v2.2.x)
-
- Closed
-
-
SERVER-12264 replicaset nodes appear to be down during compact
-
- Closed
-