[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:
Backports
Depends
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: SERVER-79214 Orphaned documents cause failures in indexu.js

GitOrigin-RevId: d77ad9f053a0d5af9ad153a3cec331355dfaf6f2
Branch: v7.0
https://github.com/mongodb/mongo/commit/87d0d28477555ca5d82b72fb5fa79b9d9157ea73

Comment by Githook User [ 26/Jul/23 ]

Author:

{'name': 'Sanika Phanse', 'email': 'sanika.phanse@mongodb.com', 'username': 'sphanse99'}

Message: SERVER-79214 Orphaned documents cause failures in indexu.js
Branch: master
https://github.com/mongodb/mongo/commit/88484390cccf0ccdd54efd48b14f6b31461da306

Generated at Thu Feb 08 06:40:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.