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

Default timeseries options may lead to false error reporting for create in v7.0

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2024-01-22
    • 5
    • 2

      SERVER-75818 slightly changed the _shardsvrCreateCollection command in v7.1 to call into validateAndSetBucketingParameters that adds to the timeseries options some default values for bucketMaxSpanSeconds and granularity. Such options are then forwarded to the create collection coordinator and persisted in the coordinator document.

      This can lead to a (very improbable) flow:

      1. The shardCollection operation starts on a v7.1 binary in FCV v7.0
      2. Binaries are replaced
      3. The shardCollection operation is resumed from disk on a v7.0 binary
      4. The shardCollection operation completes

      If the same shardCollection operation is retried by a router between 3 and 4, the mongod will erroneously report an error because of the missing default timeseries options (granularity and bucketMaxSpanSeconds).

            Assignee:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: