0

I have a sharded cluster of two replica sets - replSet and shardSet. Each of these clusters have one collection in it. When connecting to the sharded cluster using MONGOS, I am able to view the doc of one of the cluster but not of other.

MongoDB Enterprise mongos> show dbs admin 0.000GB

class 0.001GB

config 0.001GB

country 0.012GB

MongoDB Enterprise mongos> use class switched to db class MongoDB Enterprise mongos> db.grades.findOne() { "_id" : ObjectId("5ca3320f90cabd96489ff53e"), "student_id" : 1, "type" : "exam", "score" : 99.58587777215713 }

MongoDB Enterprise mongos> use country switched to db country MongoDB Enterprise mongos> show collections people MongoDB Enterprise mongos> db.people.findOne() null

What could be reason for this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.