SERVER-132604ClosedFixed

HistoricalCatalodIdTracker causes pessimistic scans on startup / FCBIS for non-existing collections

SERVER-131455 made it so the HistoricalCatalogIdTracker state is reset during storage change in FCBIS. Previously HistoricalCatalogIdTracker::rollback was always setting the _oldestTimestampMaintained to stable. However, it is now default initialized to max. Thus PIT lookups never fullfill ts > _oldestTimestampMaintained and are always kUnknown. This causes CollectionCatalog to scan mdb_catalog for any non-existing namespace, which can be resource intensive. This affects both normal

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc0
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
bkp