[SERVER-64975] Time series insertion takes a lock on the bucket collection without checking the shard version Created: 28/Mar/22  Updated: 29/Oct/23  Resolved: 29/Mar/22

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

Type: Bug Priority: Major - P3
Reporter: Antonio Fuschetto Assignee: Antonio Fuschetto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding EMEA 2022-04-04
Participants:

 Description   

The _rebuildOptionsWithGranularityFromConfigServer function sets the time series to use the granularity from the config server, and to do that an AutoGetCollection object is rightly instantiated.

With SERVER-64464, the AutoGetCollection constructor checks the shard version in case of a collection, and in this scenario it would throw a stale config exception since the insertion request is about the user-visibile view (and not the bucket collection). Consequently, the received shard version is unsharded and the check fails.



 Comments   
Comment by Githook User [ 28/Mar/22 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-64975 Time series insertion takes a lock on the bucket collection without checking the shard version
Branch: master
https://github.com/mongodb/mongo/commit/6d6945cab4a3e00e3d95b505c260f1531d650e34

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