[SERVER-1721] cursor error on concurrent requests Created: 02/Sep/10 Updated: 12/Jul/16 Resolved: 08/Nov/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.7.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kristina Chodorow (Inactive) | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
db version v1.7.0-pre-, pdfile version 4.5 |
||
| Attachments: |
|
| Operating System: | ALL |
| Participants: |
| Description |
|
I'm running the attached PHP script (drop collection, add 1000 elements, findOne) through ab with: $ ab -c 5 -n 1000 http://localhost/sample.php It causes a lot of errors that look like this in the db log: Thu Sep 2 16:30:24 [conn546] CMD: drop testDB.testColl for testDB.testColl Thu Sep 2 16:30:24 [conn536] ntoskip:0 ntoreturn:-1 for testDB.testColl The query is a findOne, so it seems weird that the cursor would be dropped during it. |
| Comments |
| Comment by Kristina Chodorow (Inactive) [ 09/Nov/10 ] |
|
Nevermind, totally fixed. My bad. |
| Comment by Kristina Chodorow (Inactive) [ 09/Nov/10 ] |
|
It's not really "fixed", it's just back to the original error... |
| Comment by auto [ 08/Nov/10 ] |
|
Author: {'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: fix cursor usage when possible deleted |
| Comment by Kristina Chodorow (Inactive) [ 04/Nov/10 ] |
|
This is now crashing the server: Thu Nov 4 11:00:34 [conn435] end connection 127.0.0.1:54540 Thu Nov 4 11:00:34 Backtrace: Thu Nov 4 11:00:34 dbexit: |
| Comment by Eliot Horowitz (Inactive) [ 03/Sep/10 ] |
|
Its happening because even though its a findOne, we yield every X objects scanned. So since there isn't an index, we have to do a table scan. Not sure if there is much we can do here.... Maybe make the error nicer? |