[SERVER-80234] Catalog cache unit tests of allowLocks should block the refresh Created: 18/Aug/23  Updated: 29/Oct/23  Resolved: 21/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 6.0.10, 7.0.2, 5.0.22

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

Issue Links:
Backports
Depends
Problem/Incident
is caused by SERVER-78505 Database cache does not use the 'allo... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0, v6.0, v5.0
Sprint: Sharding EMEA 2023-08-21, Sharding EMEA 2023-09-04
Participants:
Linked BF Score: 40

 Description   

As part of SERVER-78505, new tests were added to check the behavior of the catalog cache while using the allowLocks option. However, in these tests, we are not blocking the progress of the refresh. This means that these tests have a race condition in which they will fail if the refresh happens fast enough that the new metadata is available.

We should block the refresh similar to this test which is also testing the allowLocks behavior.



 Comments   
Comment by Githook User [ 19/Sep/23 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-78505 Database cache does not use the 'allowLocks' option correctly

(cherry picked from commit 00361bb6f7a801ac264e751e401c669cf3b6b222)

SERVER-80234 Catalog cache unit tests of allowLocks should block the refresh

(cherry picked from commit 49fc629f216aae4b8c60176c7bf3386bb2e7ed15)
Branch: v5.0
https://github.com/mongodb/mongo/commit/763d869d45923d438ccf9780d7c6345f567fdd91

Comment by Githook User [ 01/Sep/23 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-80234 Catalog cache unit tests of allowLocks should block the refresh

(cherry picked from commit 49fc629f216aae4b8c60176c7bf3386bb2e7ed15)
Branch: v6.0
https://github.com/mongodb/mongo/commit/69353845c8a545dc5a763ee199d9002e7cb95e6c

Comment by Githook User [ 25/Aug/23 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-78505 Database cache does not use the 'allowLocks' option correctly

(cherry picked from commit 00361bb6f7a801ac264e751e401c669cf3b6b222)

SERVER-80234 Catalog cache unit tests of allowLocks should block the refresh

(cherry picked from commit 49fc629f216aae4b8c60176c7bf3386bb2e7ed15)
Branch: v7.0
https://github.com/mongodb/mongo/commit/a2ed5d6e831118e11f9cd60bc00cd6a1bcad4380

Comment by Githook User [ 21/Aug/23 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-80234 Catalog cache unit tests of allowLocks should block the refresh
Branch: master
https://github.com/mongodb/mongo/commit/49fc629f216aae4b8c60176c7bf3386bb2e7ed15

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