What version are you using? (Morphia/Driver/MongoDB)
0.99
Please include a stack trace below:
Exception in thread "main" com.mongodb.MongoException: not talking to master and retries used up
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:303)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:305)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:305)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:289)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:274)
at com.mongodb.DBCollection.findOne(DBCollection.java:710)
at com.mongodb.DBCollection.findOne(DBCollection.java:652)
at com.mongodb.DBApiLayer$MyCollection.createIndex(DBApiLayer.java:343)
at com.mongodb.DBCollection.createIndex(DBCollection.java:467)
at com.mongodb.DBCollection.ensureIndex(DBCollection.java:543)
at com.mongodb.DBCollection.ensureIndex(DBCollection.java:494)
at com.google.code.morphia.DatastoreImpl.ensureIndex(DatastoreImpl.java:247)
at com.google.code.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:314)
at com.google.code.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:280)
at com.google.code.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:344)
at com.google.code.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:337)
I have used the following method to query on secondary:
query.useReadPreference(ReadPreference.secondary());
query.queryNonPrimary() throws this error too
Original issue reported on code.google.com by giovanni...@gmail.com on 5 Mar 2013 at 2:02
Original issue reported on code.google.com by
giovanni...@gmail.com
on 5 Mar 2013 at 2:02