SERVER-139302ClosedFixed

Fastcount can drift on index build attempts collection on clean shutdown

If a _clean_ shutdown and restart rolls back a commitIndexBuild or abortIndexBuild the sizeStorer's count for local.config.indexBuilds is left 1 higher than it should be. At the time of shutdown, (assuming no other index builds) the collection is empty and the count is correctly 0. On startup, the index build is restarted due to that the commit/abort has been rolled back, which creates a ledger document and sets the count to 1. Oplog replay then reapplies the commit/abort, which deletes the docu

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1026
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.