Priority: Major - P3
Resolution: Gone away
Affects Version/s: 2.2.3
Fix Version/s: None
Environment:linux 64 bit
Can't connect to mongod when another DB is being compacted (v2.2.x)
Mongo's doc states out that Mongo v2.2 (and newer) allows to open another shell in order to view the current ops even though another database is being compacted:
"You may view the intermediate progress [...] by running the db.currentOp() in another shell instance."
However, it seems that the whole mongod is blocked and not only the database which is being compacted.
In my case, I was compacting the database "offerStore". Then I wanted to see the current ops by connecting in another shell to another DB ("admin"):
> mongo s131:27018/admin -u XXX -p XXX
However, the mongo shell was blocked until the compact was terminated!
The logs show this as well:
As you can see, I wanted to connect at 14:46:49. I closed the shell after some minutes because it was blocked. After compaction at 14:53:28, mongo tried to auth again and closed the connection since my shell was closed already.
Should I open a bug report?
How can one see the progress of compaction programmatically (means not by the log-files).
My mongod version is 2.2.3.
My Mongo shell version is 2.2.1.