Uploaded image for project: 'Spark Connector'
  1. Spark Connector
  2. SPARK-137

com.mongodb.MongoCursorNotFoundException: Query failed with error code -5

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.2, 2.1.2
    • Affects Version/s: 2.0.0
    • Component/s: Configuration
    • None
    • Environment:
      mongo-spark-connector_2.11
      spark 2.1.0

      com.mongodb.MongoCursorNotFoundException: Query failed with error code -5 and error message 'Cursor 3081358854239080788 not found on server **.**.**.**:27017' on server **.**.**.**:27017
      	at com.mongodb.operation.QueryHelper.translateCommandException(QueryHelper.java:27)
      	at com.mongodb.operation.QueryBatchCursor.getMore(QueryBatchCursor.java:213)
      	at com.mongodb.operation.QueryBatchCursor.hasNext(QueryBatchCursor.java:103)
      	at com.mongodb.MongoBatchCursorAdapter.hasNext(MongoBatchCursorAdapter.java:46)
      	at scala.collection.convert.Wrappers$JIteratorWrapper.hasNext(Wrappers.scala:42)
      	at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:408)
      	at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:408)
      	at org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIterator.processNext(Unknown Source)
      	at org.apache.spark.sql.execution.BufferedRowIterator.hasNext(BufferedRowIterator.java:43)
      	at org.apache.spark.sql.execution.WholeStageCodegenExec$$anonfun$8$$anon$1.hasNext(WholeStageCodegenExec.scala:377)
      	at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:439)
      	at scala.collection.Iterator$JoinIterator.hasNext(Iterator.scala:211)
      	at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:408)
      	at org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIterator.agg_doAggregateWithKeys$(Unknown Source)
      	at org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIterator.processNext(Unknown Source)
      	at org.apache.spark.sql.execution.BufferedRowIterator.hasNext(BufferedRowIterator.java:43)
      	at org.apache.spark.sql.execution.WholeStageCodegenExec$$anonfun$8$$anon$1.hasNext(WholeStageCodegenExec.scala:377)
      	at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:408)
      	at org.apache.spark.shuffle.sort.BypassMergeSortShuffleWriter.write(BypassMergeSortShuffleWriter.java:126)
      	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:96)
      	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53)
      	at org.apache.spark.scheduler.Task.run(Task.scala:99)
      	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:282)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            pafvell pafvell
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: