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

Race condition between $out to timeseries and shard collection

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 7.0.0, 7.2.0-rc0, 7.1.0, 7.3.0-rc0
    • Component/s: None
    • Labels:
    • Catalog and Routing
    • ALL
    • v8.0, v7.3
    • 132
    • 3

      At the end of a $out operation, the temporary collection is renamed to the output namespace. For timeseries collections it is the buckets collection what gets renamed.

      It would be wrong that this rename causes a buckets collection test.system.buckets.foo to appear when there's already a test.foo sharded collection. To prevent that, _internalRenameIfOptionsAndIndexesMatch has a check to ensure that the destination collection is not sharded. However, the implementation (here on master, andhere on v7.0) of it is wrong for timeseries: It only checks that the buckets collection is not sharded, rather than the undelying view namespace

            Assignee:
            yujin.kang@mongodb.com Yujin Kang Park
            Reporter:
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: