We are migrating our single Mongo instance to Mongo cluster with sharding. I haven't started sharding yet. However, I found out when I try to add an index, I can't query any collection anymore. We don't have this issue in our current Mongo instance. At our current Mongo, we can apply indexing and query the collection at the same time.
This is the command I run to create index on new cluster:
mongos> db.lc_data.ensureIndex({"name": 1})
Now, I open another terminal and query the collection or other collections in the same database.
mongos> db.lc_other.find()
The query will hang! Why does this happen?