SERVER-90768 introduced a test hook which checks the consistency between the output of listCollections and $listCatalog. Since for time series collections, listCollections returns the options from the buckets collection as the options of the main (view) namespace, the consistency checker also does a similar lookup of the buckets collection.
This implementation assumed that if the main (view) namespace of the time series collection existed, then the corresponding buckets collection would always exists. This assumption is incorrect, and certain concurrent operations, such as create and drop, can generate this scenario. As this is a known issue without a trivial solution, tolerate this scenario in the validator, which is consistent with the solution adopted in other scenarios (e.g. listCollections).
- related to
-
SERVER-68439 Concurrent drop and create could leave a view without the bucket namespace
- Open
-
SERVER-90768 Compare output between listCollections and $listCatalog for the same database and verify equivalence in testing
- Closed