[SERVER-83114] Default timeseries options may lead to false error reporting for create in v7.0 Created: 10/Nov/23  Updated: 18/Jan/24  Resolved: 18/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Jordi Olivares Provencio
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
is caused by SERVER-75818 Fix time-series options when sharding... Closed
Related
related to SERVER-76805 Granularity field automatically added... Backlog
related to SERVER-85251 Remove unnecessary timeseries validat... Backlog
Assigned Teams:
Catalog and Routing
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: CAR Team 2024-01-22
Participants:
Linked BF Score: 5
Story Points: 2

 Description   

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).



 Comments   
Comment by Githook User [ 18/Jan/24 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: SERVER-83114 Modify timeseries Create Coordinator document only under a feature flag (#17940)

GitOrigin-RevId: 501b1f1efd61dd87b75ad526148a25e931f96e7a
Branch: master
https://github.com/mongodb/mongo/commit/5bcbc14f6a4b29f0f9140e3272f901e6707b4cc1

Comment by Gregory Noma [ 10/Nov/23 ]

Might be somewhat similar to SERVER-76805

Generated at Thu Feb 08 06:51:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.