[SERVER-10349] Version 2.2.. You cannot connect to mongo server when Index creation is in progress Created: 26/Jul/13  Updated: 10/Dec/14  Resolved: 04/Apr/14

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: 2.2.1
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: Rajesh Sharma Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS release 5.8 (Final)


Issue Links:
Duplicate
duplicates SERVER-10243 Let administrators mark certain users... Backlog
Operating System: ALL
Participants:

 Description   

When Index creation is going on. I tried to connect to Mongo database using mongo shell admin database using following command to kill the index operation but cannot connect it.

mongo mongo-dev01:27017/admin -u XXXX -p XXXXX



 Comments   
Comment by sam.helman@10gen.com [ 26/Jul/13 ]

This is happening because connecting with authentication needs a read lock to authenticate, which is slated to be fixed by https://jira.mongodb.org/browse/SERVER-10243. The best option is to create the index with background:true (http://docs.mongodb.org/manual/core/indexes/#background-construction). This should prevent the index from blocking the connection.

Let me know if this helps!

Comment by Rajesh Sharma [ 26/Jul/13 ]

It Hangs till the Index creation is over.

Comment by sam.helman@10gen.com [ 26/Jul/13 ]

Hello,

Could you post the output of the

mongo mongo-dev01:27017/admin -u XXXX -p XXXXX

execution? Does the connection attempt hang, or is it rejected?

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