[SERVER-34414] Creating a role with buildsIndexes:false node hits an fassert Created: 11/Apr/18 Updated: 29/Oct/23 Resolved: 03/Jul/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication, Security |
| Affects Version/s: | 3.4.14, 3.6.3 |
| Fix Version/s: | 3.4.17, 3.6.7, 4.0.1, 4.1.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Dugast Fabien | Assignee: | Matthew Russotto |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Backport Requested: |
v4.0, v3.6, v3.4
|
||||||||||||||||||||
| Sprint: | Repl 2018-06-04, Repl 2018-06-18, Repl 2018-07-02 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 34 | ||||||||||||||||||||
| Description |
|
Hello, I created a fresh replicaset with this command:
My Replica is correctly initiated. As you can see I have a Hidden node. When I try to create a role in the admin database, with command:
The Hidden node crashes with this stacktrace:
I can't figure out if it's me who have misconfigured something or if its an internal Mongodb bug. |
| Comments |
| Comment by Githook User [ 03/Aug/18 ] |
|
Author: {'name': 'Matthew Russotto', 'email': 'matthew.russotto@10gen.com', 'username': 'mtrussotto'}Message: |
| Comment by Githook User [ 23/Jul/18 ] |
|
Author: {'username': 'mtrussotto', 'name': 'Matthew Russotto', 'email': 'matthew.russotto@10gen.com'}Message: (cherry picked from commit cfa75c933e125b41596c80b9a1297bb12d318ac3) |
| Comment by Githook User [ 19/Jul/18 ] |
|
Author: {'name': 'Matthew Russotto', 'email': 'matthew.russotto@10gen.com', 'username': 'mtrussotto'}Message: (cherry picked from commit 7c8d941c7f6904a65476ca91c6013067d2149fe8) |
| Comment by Githook User [ 03/Jul/18 ] |
|
Author: {'username': 'mtrussotto', 'name': 'Matthew Russotto', 'email': 'matthew.russotto@10gen.com'}Message: |
| Comment by Dugast Fabien [ 12/Apr/18 ] |
|
FYI, The issue occur also when creating user on a fresh replica set. User is created from $external database which store data in admin.user. So I understand that the problem in on the admin database ? We manage to bypass the issue by creating a dummy role and dummy user before adding a hidden into the RS. Good luck and thanks !! |
| Comment by Eric Milkie [ 11/Apr/18 ] |
|
The problem seems to stem from the way system_indexes.cpp is currently written, which is to build system indexes for user auth "in the moment" (when their absence is discovered). and not generate oplog entries for such builds. I'm not sure if we should switch them to generate oplog entries, or if we should simply add another exception for them in the "buildsIndexes" validation logic. |
| Comment by Eric Milkie [ 11/Apr/18 ] |
|
The crash is actually occurring because you have made the hidden node "buildsIndexes: false", and that is interacting badly with the user authentication feature. It's definitely a bug. Thanks for reporting it! We'll investigate. |
| Comment by Dugast Fabien [ 11/Apr/18 ] |
|
For more information, |