Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial import of an index keeps failing because of cursor timeout. Is there a way to control cursor timeout while initial import in config? #565

Open
syllogismos opened this issue Oct 13, 2015 · 0 comments

Comments

@syllogismos
Copy link

Hello,

When I start a river, the initial import is failing after importing 30% of the documents. It shows a cursor timeout error, and starts syncing with oplogs. This is the error that it shows up..

[2015-10-12 23:16:15,657][ERROR][org.elasticsearch.river.mongodb.CollectionSlurper] Exception while looping in cursor
com.mongodb.MongoException: getMore: cursor didn't exist on server, possible restart or timeout?
       at com.mongodb.QueryResultIterator.throwOnQueryFailure(QueryResultIterator.java:246)
       at com.mongodb.QueryResultIterator.init(QueryResultIterator.java:224)
       at com.mongodb.QueryResultIterator.initFromQueryResponse(QueryResultIterator.java:184)
       at com.mongodb.QueryResultIterator.getMore(QueryResultIterator.java:149)
       at com.mongodb.QueryResultIterator.hasNext(QueryResultIterator.java:135)
       at com.mongodb.DBCursor._hasNext(DBCursor.java:626)
       at com.mongodb.DBCursor.hasNext(DBCursor.java:657)
       at org.elasticsearch.river.mongodb.CollectionSlurper.importCollection(CollectionSlurper.java:140)
       at org.elasticsearch.river.mongodb.CollectionSlurper.importInitial(CollectionSlurper.java:77)
       at org.elasticsearch.river.mongodb.MongoDBRiver$1.run(MongoDBRiver.java:305)
       at java.lang.Thread.run(Thread.java:745)

This way, I get changes from op.logs, but I'm missing most of the documents in Elasticsearch. Is there a way to specify the timeout of a cursor during initial import? So that I can increase the cursor living length? Or what is the solution to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant