[SERVER-62759] applyOps of dropDatabase causes invariant failure Created: 19/Jan/22 Updated: 29/Oct/23 Resolved: 28/Feb/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 5.2.0 |
| Fix Version/s: | 6.0.0-rc0, 5.3.0-rc3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tim Fogarty | Assignee: | Jordi Olivares Provencio |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Minor Change | ||||||||||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||||||||||
| Backport Requested: |
v5.3
|
||||||||||||||||||||||||||||||||||||
| Sprint: | Execution Team 2022-02-21, Execution Team 2022-03-07 | ||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||
| Linked BF Score: | 149 | ||||||||||||||||||||||||||||||||||||
| Description |
|
Running this command on a 5.2 ReplicaSet with a nonempty database:
Results in a fatal error:
Looks like this is due to |
| Comments |
| Comment by Githook User [ 04/Mar/22 ] |
|
Author: {'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}Message: (cherry picked from commit 8696ce442652f7a69232b35901b73684bbcf7a88) |
| Comment by Jordi Olivares Provencio [ 04/Mar/22 ] |
|
Requesting backport as it affects multiversion compatibility |
| Comment by Githook User [ 25/Feb/22 ] |
|
Author: {'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}Message: |
| Comment by Tim Fogarty [ 15/Feb/22 ] |
|
You do have to create a collection in the database first. I tested this on 5.3.0-alpha4-70-gce43fa5 and hit the bug after creating the collection. If the database is empty it looks like it works fine. |
| Comment by Jordi Olivares Provencio [ 08/Feb/22 ] |
|
Hey tim.fogarty, I'm having difficulties reproducing the conditions for this error locally. I've tested it on my environment (mongod debug build from master with clean /data folder + mongosh) and can't seem to reproduce the invariant failure. Could you give me more details as to what steps you followed to obtain the failure? Namely if you had to create something before or some concurrent operation running. |