[SERVER-2209] timeout query deosn`t kill query Created: 13/Dec/10  Updated: 28/Feb/23  Resolved: 13/Dec/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.6.4
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: ppalka Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Replica set, php driver 1.0.10


Issue Links:
Related
Operating System: ALL
Participants:

 Description   

I have set timeout in my php driver to 30s. If query runs long time that 30s MongoexeptionsTimeout Throws, connection are closed but when I type db.currentOp() I see this query is still processing



 Comments   
Comment by Scott Hernandez (Inactive) [ 13/Dec/10 ]

You cannot set a timeout value for the query on the server. You can only set NOTIMEOUT for the query.

You might want to file an issue for the PHP driver if it implies you can, and doesn't cleanup the connection correctly.

Comment by Eliot Horowitz (Inactive) [ 13/Dec/10 ]

This is correct behavior.
There is a $maxScan option for queries that you may want to look at for limiting server time.
If you think a $maxTime option would make sense, please open a feature request for that.

Generated at Thu Feb 08 02:59:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.