[SERVER-84114] Exceptions thrown while generating index keys fail collection validation Created: 12/Dec/23  Updated: 15/Dec/23

Status: Open
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Dan Larkin-York Assignee: Backlog - Storage Execution Team
Resolution: Unresolved Votes: 0
Labels: storex-shortlist
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-27392 text index with multi-key prefix is n... Closed
Assigned Teams:
Storage Execution
Operating System: ALL
Participants:

 Description   

Some index key generation methods may throw exceptions as part of the control flow, to indicate that a given document has contents which are not compatible with the current set of indexes for a given collection. Collection validation generates the expected keys for each document in order to check them against the index keys on disk for consistency. If an exception is encountered during this process, it fails the validation process early, which could mask other issues.

It is likely we can safely catch certain types of exceptions, record the failure, and continue to validate the rest of the collection. If not, we should make quite clear that the results are incomplete.


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