[SERVER-72250] In-memory Cluster Server Parameter cache is not updated transactionally Created: 19/Dec/22  Updated: 29/Oct/23  Resolved: 16/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0, 6.0.7

Type: Bug Priority: Major - P3
Reporter: Christopher Caplinger Assignee: Gabriel Marks
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-66515 Enable Feature flag for PM-2925 Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: Security 2023-01-09, Security 2023-01-23, Security 2023-02-06, Security 2023-02-20, Security 2023-03-06, Security 2023-03-20
Participants:

 Description   

SERVER-72110 updated ClusterServerParameterInitializer:: doLoadAllTenantParametersFromDisk to avoid the use of DBDirectClient in order to support refreshing the cache while in a WriteUnitOfWork. Unfortunately, for example, when invoked for live import, if the wuow rolls back after calling onImportCollection, the cache can be out of sync with committed state.



 Comments   
Comment by Githook User [ 05/Jun/23 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-72250 Update cluster parameter cache transactionally
Branch: v6.0
https://github.com/mongodb/mongo/commit/86f76d437fec452cbe84c6d26700c5993ea63843

Comment by Githook User [ 13/Mar/23 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-72250 Update cluster parameter cache transactionally
Branch: master
https://github.com/mongodb/mongo/commit/ceebc338815821bde76cc7d9a547b996ea6f873e

Comment by Judah Schvimer [ 19/Dec/22 ]

As part of this ticket we should consider what testing we can add to catch bugs like this. Would SERVER-69015 have caught this?

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