db.CopyDatabase also copies indices

22 views
Skip to first unread message

Sebastian Stehle

unread,
Mar 9, 2015, 11:23:27 AM3/9/15
to mongod...@googlegroups.com
Hello together,

I am running a replica set on mongodb 3.0 and wired tiger with three members. I connect to the master and copy my database. But after it I notice, that all the indices exist as normal documents in the collection. The problem is that my application does not understand the format and crashes.

> db.StationSet.find({ key: {$exists: true} })
{ "_id" : ObjectId("54fdb3f31cd6bae74eb69d68"), "key" : { "Location" : "2dsphere" }, "name" : "Location_2dsphere", "ns" : "bls_test_read.StationSet", "background" : true, "2dsphereIndexVersion" : 2 }

I see this documents only an the secondaries and I also ensured that there is no replication lag.

Can you please tell me, where is my mistake?

Asya Kamsky

unread,
Mar 9, 2015, 12:44:23 PM3/9/15
to mongodb-user
I think this is a duplicate message - can you please answer the follow-up questions I asked in the other thread you started?

Asya


--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/c53e9f09-98d1-466a-aa7e-45c9cf1e068d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages