[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: |
|
||||||||
| 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 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: (cherry picked from commit 34166ec206a7c0d1bb7da719f5f1efdf53cc2c4e) |
| Comment by Githook User [ 25/May/20 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: |