Writes concurrent to viewless timeseries upgrade may create new buckets instead of reopening

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: 9.0.0-rc0
    • Component/s: Write Ops
    • None
    • Catalog and Routing
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      On the timeseries write path, under certain conditions we try to re-open an existing bucket instead of creating a new one. Fetching the bucket to reopen is done by sending a rawData query to the buckets namespace via DBDirectClient.

       

      Since no locks are held, It is possible that this races so that the namespace is the system.buckets collection, but it has since been upgraded to viewless. The query will then find no results.

       

      A priori this is harmless (we will conclude that no bucket can be reopened so we will just create a new one) but we should investigate if fixing allows us to increase the coverage for buckets. (SERVER-121471 made all viewless timeseries upgrade/downgrade suites assume non-canonical buckets layout).

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

              Created:
              Updated:
              Resolved: