[SERVER-48184] Rewrite `CacheSizeZero` from ReadThroughCacheTest to use the MockThreadPool Created: 13/May/20  Updated: 29/Oct/23  Resolved: 25/May/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.4.0-rc7, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Benety Goh
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:
v4.4
Sprint: Execution Team 2020-06-01
Participants:
Linked BF Score: 0

 Description   

The CacheSizeZero test expects certain behaviour from the ReadThroughCache, which cannot actually guaranteed as explained in this comment.

The exact race condition in the test is explained in the description of SERVER-47654.

Because of this, the test should be re-written as an "async" test to use the MockThreadPoo so that the lifetime of the returned handles is predictable.



 Comments   
Comment by Githook User [ 26/May/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-48184 Rewrite CacheSizeZero from ReadThroughCacheTest to use the MockThreadPool

(cherry picked from commit 34166ec206a7c0d1bb7da719f5f1efdf53cc2c4e)
Branch: v4.4
https://github.com/mongodb/mongo/commit/f702704ffe0279713698f15fe0ffcca46a1d3186

Comment by Githook User [ 25/May/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-48184 Rewrite CacheSizeZero from ReadThroughCacheTest to use the MockThreadPool
Branch: master
https://github.com/mongodb/mongo/commit/34166ec206a7c0d1bb7da719f5f1efdf53cc2c4e

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