[SERVER-79214] Orphaned documents cause failures in indexu.js Created: 21/Jul/23 Updated: 07/Feb/24 Resolved: 26/Jul/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.1.0-rc0, 7.0.6 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sanika Phanse (Inactive) | Assignee: | Sanika Phanse (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | new-eng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v7.0
|
||||||||
| Sprint: | Sharding NYC 2023-08-07 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 5 | ||||||||
| Description |
|
Many of the index builds in indexu.js succeed on the assumption that there are no documents in the collection. However, in the multi_stmt_txn_jscore_passthrough_with_migrations suite, we cannot predict the timeliness of the deletion of orphan documents from migrations. Thus, some of these index builds fail because they still view the orphan document. This is correct behavior since https://jira.mongodb.org/browse/PM-2098 made it so broadcast deleteMany won't delete any unowned documents and `validate` assumes every document has an index built on it, regardless of if it is owned or unowned. We can address this by either allowing the error `16746` to be thrown at these index build assertions or we can disable the test indexu.js from the multi_stmt_txn_jscore_passthrough_with_migrations suite. I think it's fine to disable the test from the suite. The test is definitely written under the assumption that there are no orphan documents. |
| Comments |
| Comment by Githook User [ 07/Feb/24 ] |
|
Author: {'name': 'Sanika Phanse', 'email': 'sanika.phanse@mongodb.com', 'username': 'sphanse99'}Message: GitOrigin-RevId: d77ad9f053a0d5af9ad153a3cec331355dfaf6f2 |
| Comment by Githook User [ 26/Jul/23 ] |
|
Author: {'name': 'Sanika Phanse', 'email': 'sanika.phanse@mongodb.com', 'username': 'sphanse99'}Message: |