SERVER-133545ClosedFixed

renameCollection with dropTarget can lead to orphaned replicated size-count metadata entries

A {{renameCollection}} with {{dropTarget}} destroys the collection occupying the target namespace, but produces no {{drop}} oplog entry for it. The destruction is expressed only as a field inside the rename entry. This means that we can have orphaned metadata store entries for the collections that are dropped with {{{}dropTarget{}}}.

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-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.