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

Time-series collection creation does not perform shard version checks on buckets collection

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Execution
    • ALL

      Creating a time-series collection on a sharded cluster forwards the command to the primary shard using the user-facing view namespace (which is inherently unsharded), meaning that even if a sharded buckets collection already exists that shard versioning information is not included in the request. When creating the buckets collection on the shard, we skip shard versions checks when acquiring the collection and then return early if the collection already exists on that shard. There is a shard version check after that, but at that point we already know that the collection doesn't exist on the shard (plus the shard version information provided with the request is for a different namespace, as previously noted).

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: