Fix aggregation view resolution concurrent to viewless timeseries upgrade

XMLWordPrintableJSON

    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2026-02-02
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      If an aggregation targets a view, we first acquire the view, then relinquish the locks and re-acquire them over collection the view is on.

       

      For viewful timeseries collections ('tscoll' view on 'system.buckets.tscoll' collection), it's possible that the aggregation sees the 'tscoll' view, then it releases the locks and concurrently an upgrade to viewless timeseries happens. When we then re-acquire 'system.buckets.tscoll', we don't find it because it has been converted by the upgrade.

       

      If this happens and we continue, we return incorrect (empty) results. We should instead re-resolve the aggregation.

            Assignee:
            Joan Bruguera Micó
            Reporter:
            Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: