Failure to write to geo index when inserting a document to timeseries existing bucket

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0, 8.2.2, 8.0.16
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • ALL
    • v8.2, v8.0
    • Storage Execution 2025-10-27
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We uncovered a bug on the timeseries insert path. When we have an index with key pattern {loc: "2dsphere", metaField: 1} (where metaField must be the timeseries meta field), the second time we insert a document into a given bucket, we treat it as an "update" of the bucket rather than a new "insert". Because we go the update path, we skip some logic that updates the underlying indexes.

      In the geo-specific case, this does cause a bug where we may miss results in a query if the query should match an index key from the second document inserted to the bucket but not the first document.

            Assignee:
            Henrik Edin
            Reporter:
            Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: