[SERVER-33089] Unable to start queryable mongod because it failed to regenerate index for admin.system.users Created: 02/Feb/18 Updated: 29/Oct/23 Resolved: 05/Feb/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance, Security |
| Affects Version/s: | 3.4.11 |
| Fix Version/s: | 3.4.12, 3.6.3, 3.7.2 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Ankur Srivastava (Inactive) | Assignee: | Spencer Jackson |
| Resolution: | Fixed | Votes: | 1 |
| 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: |
v3.6, v3.4
|
||||||||||||||||
| Sprint: | Platforms 2018-02-12 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Unable to start queryable mongod for the backup of mongod version 3.4.10. indexes on admin.system.user on mongod 3.4.10:
indexes on admin.system.user on mongod 3.4.11:
Queryable restore uses the latest mongod available to start queryable mongod. So for the backup of mongod 3.4.10 it will use queryable mongod 3.4.11. While starting queryable mongod, it tries to create the extra index introduced in mongod 3.4.11, and it fails because queryable mongod is started in read only mode. Following is the error encountered:
|
| Comments |
| Comment by Githook User [ 05/Feb/18 ] |
|
Author: {'email': 'spencer.jackson@mongodb.com', 'name': 'Spencer Jackson', 'username': 'spencerjackson'}Message: (cherry picked from commit ce5691d634b9228b0686e6241e071f6691e46a3f) |
| Comment by Githook User [ 05/Feb/18 ] |
|
Author: {'email': 'spencer.jackson@mongodb.com', 'name': 'Spencer Jackson', 'username': 'spencerjackson'}Message: (cherry picked from commit ce5691d634b9228b0686e6241e071f6691e46a3f) |
| Comment by Githook User [ 05/Feb/18 ] |
|
Author: {'email': 'spencer.jackson@mongodb.com', 'name': 'Spencer Jackson', 'username': 'spencerjackson'}Message: |
| Comment by Spencer Jackson [ 02/Feb/18 ] |
|
I can confirm that the server will start with missing indexes with --queryableBackupMode if index generation is bypassed in readOnly mode. |
| Comment by Spencer Jackson [ 02/Feb/18 ] |
|
Agreed. There was a bug where old 3.4 servers failed to generate auth indexes. New servers would regenerate them on startup, if they were missing. It looks like the backup came from such an old server. New servers probably shouldn't regenerate the indexes, if the server is in read only mode. |
| Comment by Bruce Lucas (Inactive) [ 02/Feb/18 ] |
|
Looks like this is probably a side-effect of |