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

Invalid 2D sphere documents do not throw BadValue

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding EMEA 2022-02-21

      The jsTest timeseries_metric_index_2dsphere.jsĀ asserts that ErrorCodes::BadValue is thrown when invalid documents are provided. However, the code does not throw this error code. This hasn't been caught because the loop used to check these documents is incorrect, and is inserting the indices of the documentĀ (because of how for/in loops work in javascript) which are currently just ignored by the bulk insert api.

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: