Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-81024

Validation improvements for time-series duplicate index field names

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 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.

            Assignee:
            shinyee.tan@mongodb.com Shin Yee Tan
            Reporter:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: