We're observing WANObjectCacheTest fail sometimes, possibly due to a 1/825 chance of a cache key being counted as "popular" combined with an mt_srand() call making this more likely. I tweaked the options to getWithSetCallback() to avoid the affected mt_rand() call altogether. I also added a lowTTL option to another getWithSetCallback() call, eliminating a condition with a 3% chance. It didn't appear to matter which branch the test took, but I'd rather avoid non-deterministic behaviour. There are a few remaining coin tosses being logged, but they all occur with a chance of less than 10^-5. Bug: T238197 Change-Id: Iadd3dc00d44b8490210fec97fe1f49236326300f |
||
|---|---|---|
| .. | ||
| BagOStuffTest.php | ||
| CachedBagOStuffTest.php | ||
| HashBagOStuffTest.php | ||
| MultiWriteBagOStuffTest.php | ||
| WANObjectCacheTest.php | ||