AutoGetCollection will throw if a caller tries to access the collection at a point-in-time earlier than the min visible timestamp. Because renameCollection sets the min visible timestamp back in time, callers can now access the collection at an earlier time than an index build completed. This can hit the DEV (debug only) block in IndexCatalog::numIndexesReady and invariant; or allow callers that expect an index build to be complete to find no ready index because we filter out ready indexes based on commit timestamp, which can fail our testing that primaries and secondaries have the same number of indexes.
- is depended on by
-
SERVER-40011 Invariant that setMinimumVisibleSnapshot never goes back in time in IndexCatalogEntry and Collection
- Closed
- is duplicated by
-
SERVER-40011 Invariant that setMinimumVisibleSnapshot never goes back in time in IndexCatalogEntry and Collection
- Closed