[SERVER-79936] Handle multikey indexes in missing index keys check Created: 11/Aug/23 Updated: 06/Dec/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Aiden Szeto (Inactive) | Assignee: | Backlog - Replication Team |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | pm-855-milestone-5 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Replication
|
| Sprint: | Repl 2023-11-27 |
| Participants: |
| Description |
|
The missing index keys check uses findLoc to retrieve the record ID of a keystring. findLoc returns the RecordId of the first key whose prefix matches the keystring, so we may overlook a missing index key for fields that have identical values. To check for this, we can verify that the length of the expected index keys is equal to the number of unique keystrings we retrieve |