-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Execution NAMR Team 2023-09-18, Execution NAMR Team 2023-10-02
If a time-series bucket fails to pass the collection's schema, we skip running any time-series specific checks. A bucket will fail to pass the schema check if there are duplicate index field names present (SERVER-80358). Validate will return {valid: true} and log a warning in this case:
A BSON document contains a duplicate field name : 1 in element with field name 'data.1' in object with _id: ObjectId('65006634684c43032fbe1693')
To improve the detection of this issue we can update the check added in SERVER-80356. We should add extra logic to help us distinguish between safe and unsafe cases (missing fields). This new check would be an error instead of a warning, and we can improve the error message.
- related to
-
SERVER-80358 Time-series inserts generate duplicate index fields in bucket document
- Closed
-
SERVER-80356 Log previous field index when time-series bucket data field is not consecutively increasing during validate
- Closed