[SERVER-8389] Possible deadlock with auth check for building indexes Created: 29/Jan/13 Updated: 11/Jul/16 Resolved: 07/Feb/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Concurrency, Security |
| Affects Version/s: | 2.3.2 |
| Fix Version/s: | 2.4.0-rc1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Spencer Brody (Inactive) | Assignee: | Spencer Brody (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
The auth checks for index creation happen far down, so that we can know the namespace that the index is being built on. This is a problem, however, because you might be in a lock when doing the auth checks, which could cause deadlock due to automatic privilege acquisition. We need to do the auth check at the beginning of the operation, before any locks are held |
| Comments |
| Comment by auto [ 07/Feb/13 ] |
|
Author: {u'date': u'2013-01-29T20:36:17Z', u'email': u'spencer@10gen.com', u'name': u'Spencer T Brody'}Message: |