AnsweredAssumed Answered

MongoDB Input Step Cursor error with 8.1 version

Question asked by Rajagopal Naidu Ayyappagari on Jul 13, 2018
Latest reply on Aug 31, 2018 by Rajagopal Naidu Ayyappagari


I recently upgraded to 8.1 PDI(community edition) from 7.1. The Mongo Input step was all working fine in the older version. But in the new version I am getting the below error.

 

com.mongodb.MongoCursorNotFoundException: Query failed with error code -5 and error message 'Cursor 141094656064 not found on server xx.xx.xx.xx:27017' on server xx.xx.xx.xxx:27017

Query failed with error code -5 and error message 'Cursor 141094656064 not found on server 10.244.3.187:27017' on server 10.244.3.187:27017

        at org.pentaho.di.trans.steps.mongodbinput.MongoDbInput.processRow(MongoDbInput.java:137)

        at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)

        at java.lang.Thread.run(Thread.java:748)

Caused by: com.mongodb.MongoCursorNotFoundException: Query failed with error code -5 and error message 'Cursor 141094656064 not found on server 10.244.3.187:27017' on server 10.244.3.187:27017

        at com.mongodb.operation.QueryHelper.translateCommandException(QueryHelper.java:27)

        at com.mongodb.operation.QueryBatchCursor.getMore(QueryBatchCursor.java:229)

        at com.mongodb.operation.QueryBatchCursor.hasNext(QueryBatchCursor.java:115)

        at com.mongodb.MongoBatchCursorAdapter.hasNext(MongoBatchCursorAdapter.java:46)

        at com.mongodb.DBCursor.hasNext(DBCursor.java:147)

        at org.pentaho.mongo.wrapper.cursor.DefaultCursorWrapper.hasNext(DefaultCursorWrapper.java:34)

        at org.pentaho.di.trans.steps.mongodbinput.MongoDbInput.processRow(MongoDbInput.java:87)

        ... 2 more

 

it looks like this is the new problem introduced in the new version. If someone has solution for this, please let me know. Thanks in advance.

Outcomes