Cursor timeout

282 views
Skip to first unread message

Ofer Cohen

unread,
Sep 1, 2015, 2:02:36 PM9/1/15
to mongodb-user
Hello

We are using MongoDB 3.0.6 with cluster of 9 nodes (each one replicaset).
We run complex aggregate query and we get the following error:
        "errmsg" : "exception: getMore: cursor didn't exist on server, possible restart or timeout?",
        "code" : 13127,
        "ok" : 0,
        "$gleStats" : {
                "lastOpTime" : Timestamp(0, 0),
                "electionId" : ObjectId("55e0696c788515101e7a2665")
        }


After research we found the next issue resolution: https://jira.mongodb.org/browse/SERVER-8188, which address to add the parameter cursorTimeoutMillis with the setParameter command.
So we put this command to the mongos and each mongod node. We check the parameter value of each node (including mongos) as follow:
> db.runCommand({getParameter:1, cursorTimeoutMillis:1})
{ "cursorTimeoutMillis" : 21600000, "ok" : 1 }


After running again the query we are still phasing the same error.

Please advise,

Thanks, Ofer

Ofer Cohen

unread,
Sep 2, 2015, 6:08:18 AM9/2/15
to mongodb-user
Hey

After restart all nodes it seems that it works fine.

Thanks anyway
Reply all
Reply to author
Forward
0 new messages