[SERVER-12497] role_management_helpers and user_management_helpers deadlocked with eval Created: 19/Nov/13 Updated: 03/Mar/18 Resolved: 07/Feb/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Stability |
| Affects Version/s: | None |
| Fix Version/s: | 2.6.0-rc0 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Eric Milkie | Assignee: | Andy Schwerin |
| Resolution: | Done | Votes: | 0 |
| Labels: | build-failure | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Participants: | |||||||||||||||||
| Linked BF Score: | 0 | ||||||||||||||||
| Description |
|
http://buildlogs.mongodb.org/mci_0.9_osx_108/builds/10987/test/parallel_0/basicPlus.js |
| Comments |
| Comment by Githook User [ 07/Feb/14 ] |
|
Author: {u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}Message: This eliminates a deadlock cycle between the global or admin-database write lock and the |
| Comment by Githook User [ 06/Feb/14 ] |
|
Author: {u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}Message: |
| Comment by Githook User [ 06/Feb/14 ] |
|
Author: {u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}Message: |
| Comment by Andy Schwerin [ 06/Feb/14 ] |
|
I have confirmed hypothesis (1), above. The fix is to skip refreshing the session's user data cache when auth checks will be ignored, anyways (as in DBDirectClient). Code review to follow. |
| Comment by Andreas Nilsson [ 27/Jan/14 ] |
| Comment by Andy Schwerin [ 25/Nov/13 ] |
|
Two hypotheses:
|
| Comment by Eric Milkie [ 25/Nov/13 ] |
|
Interestingly, evalc.js was running when each of the above tests deadlocked. |
| Comment by Eric Milkie [ 25/Nov/13 ] |
|
Another deadlock, this time with user_management_helpers: |