[SERVER-60508] Shard server OnReplicationRollback throws when recovering critical section on time-series collection Created: 06/Oct/21  Updated: 29/Oct/23  Resolved: 13/Oct/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.2.0, 5.0.4, 5.1.0-rc1

Type: Bug Priority: Major - P3
Reporter: Jason Chan Assignee: Jordi Serra Torrens
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.1, v5.0
Sprint: Sharding EMEA 2021-10-18
Participants:
Linked BF Score: 40

 Description   

Currently, the ShardServerOpObserver has rollback logic that will call recoverRecoverableCriticalSections() which calls AutoGetColl on the collection namespaces. However, if it is a time-series collection, AutoGetColl will throw and fail rollback.



 Comments   
Comment by Githook User [ 13/Oct/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-60508 Make recoverRecoverableCriticalSections not attempt to release critSec for views

(cherry picked from commit 34f32547b19c4bd62538273b093aa31fc26d71ea)
Branch: v5.0
https://github.com/mongodb/mongo/commit/515aacde18ae0850bc7da12063998adab5c42d4a

Comment by Githook User [ 13/Oct/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-60508 Make recoverRecoverableCriticalSections not attempt to release critSec for views

(cherry picked from commit 34f32547b19c4bd62538273b093aa31fc26d71ea)
Branch: v5.1
https://github.com/mongodb/mongo/commit/f184d25314ff00ab71763864bd86304b1d32e426

Comment by Githook User [ 13/Oct/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-60508 Make recoverRecoverableCriticalSections not attempt to release critSec for views
Branch: master
https://github.com/mongodb/mongo/commit/34f32547b19c4bd62538273b093aa31fc26d71ea

Generated at Thu Feb 08 05:49:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.