-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 6.0.3, 7.0.0, 8.0.0-rc0, 7.3.3
-
Component/s: None
-
None
-
Catalog and Routing
-
Fully Compatible
-
ALL
-
v8.0, v7.3, v7.0, v6.0
-
CAR Team 2024-07-22, CAR Team 2024-08-05
-
0
The "all_collection_stats.js" test verifies the correct behavior of $_internalAllCollectionStats by comparing each collection with $collStats statistics. However, there is a race condition because these two aggregations are issued at different points in time. There is a chance that WT checkpoints between those aggregations and may causes the statistics to differ (e.g., storageSize).
I propose updating the test to enhance its robustness. It should be sufficient to validate $_internalAllCollectionStats by ensuring that it eventually provides the same statistics as $collStats, perhaps using an `assert.soon`.