[SERVER-6123] aggregation holds read lock indefinitely without yielding after initial processing of first sort or group stage Created: 19/Jun/12 Updated: 11/Jul/16 Resolved: 04/Jul/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | 2.2.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Aaron Staple | Assignee: | Aaron Staple |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
The aggregate command takes a read lock for the duration of its operation. This lock may be yielded when the source Cursor is advanced (and is only yielded in this case I believe). A sort or group stage in the pipeline will read all the results of its own source before generating its own first result. This means that yielding will not occur after the first sort or group stage of the pipeline returns its first result. Test
You can observe a long lived read lock by attempting periodic writes from a separate client. Observed behavior: An aggregate command may hold a read lock for a prolonged interval without yielding. |
| Comments |
| Comment by auto [ 03/Jul/12 ] |
|
Author: {u'date': u'2012-07-03T14:27:47-07:00', u'name': u'Aaron', u'email': u'aaron@10gen.com'}Message: |
| Comment by auto [ 03/Jul/12 ] |
|
Author: {u'date': u'2012-07-03T13:41:41-07:00', u'name': u'Aaron', u'email': u'aaron@10gen.com'}Message: |
| Comment by auto [ 03/Jul/12 ] |
|
Author: {u'date': u'2012-07-03T13:40:00-07:00', u'email': u'aaron@10gen.com', u'name': u'Aaron'}Message: |
| Comment by auto [ 03/Jul/12 ] |
|
Author: {u'date': u'2012-07-03T13:39:18-07:00', u'email': u'aaron@10gen.com', u'name': u'Aaron'}Message: |
| Comment by auto [ 03/Jul/12 ] |
|
Author: {u'date': u'2012-07-03T13:38:39-07:00', u'name': u'Aaron', u'email': u'aaron@10gen.com'}Message: |
| Comment by auto [ 03/Jul/12 ] |
|
Author: {u'date': u'2012-07-03T13:37:51-07:00', u'email': u'aaron@10gen.com', u'name': u'Aaron'}Message: |