[SERVER-12200] tailable cursor goes invalid after 10 minutes Created: 24/Dec/13  Updated: 11/Jul/16  Resolved: 02/Jan/14

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 2.5.4
Fix Version/s: 2.5.5

Type: Bug Priority: Major - P3
Reporter: Cory Mintz Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-11705 tailable cursors cursor not found aft... Closed
Operating System: ALL
Participants:

 Description   

I am using the mgo driver to create a tailable cursor on the oplog. For example:

oplogColl.Find(oplogStart.Query()).LogReplay().Tail(time.Second)

In 2.5.4, this cursor becomes invalid after 10 minutes. Below is information from the server log for this connection. I can get more complete server logs if necessary.

2013-12-24T12:29:53.687-0500 [initandlisten] connection accepted from 127.0.0.1:60561 #26 (5 connections now open)
2013-12-24T12:29:53.696-0500 [conn26] runQuery called local.oplog.rs { ts: { $gte: Timestamp 1387905878000|2 } }
2013-12-24T12:29:53.696-0500 [conn26] query local.oplog.rs query: { ts: { $gte: Timestamp 1387905878000|2 } } cursorid:89704825967447 ntoreturn:0 ntoskip:0 keyUpdates:0 locks(micros) r:194 nreturned:1 reslen:173 0ms
2013-12-24T12:29:53.697-0500 [conn26] getmore local.oplog.rs cursorid:89704825967447 ntoreturn:0 keyUpdates:0 locks(micros) r:21 nreturned:1 reslen:97 0ms
2013-12-24T12:29:58.713-0500 [conn26] getmore local.oplog.rs cursorid:89704825967447 ntoreturn:0 keyUpdates:0 locks(micros) r:200 nreturned:0 reslen:20 5014ms
2013-12-24T12:30:03.728-0500 [conn26] getmore local.oplog.rs cursorid:89704825967447 ntoreturn:0 keyUpdates:0 locks(micros) r:198 nreturned:0 reslen:20 5014ms
...
...
...
2013-12-24T12:39:55.500-0500 [conn26] getMore: cursorid not found local.oplog.rs 89704825967447
2013-12-24T12:39:55.501-0500 [conn26] getmore local.oplog.rs cursorid:89704825967447 ntoreturn:0 keyUpdates:0 locks(micros) r:361 nreturned:0 reslen:20 5015ms
2013-12-24T12:39:55.505-0500 [conn26] Socket recv() conn closed? 127.0.0.1:60561

This does not occur in 2.4.8



 Comments   
Comment by Githook User [ 02/Jan/14 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-12200 reset cursor timeout on getMore()
Branch: master
https://github.com/mongodb/mongo/commit/6de0da15e46398dfc1b1747ec2c27c61c2e8bca9

Generated at Thu Feb 08 03:27:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.