SERVER-136539ClosedFixed

FullCollScan sampling method can be reported incorrectly in explain

For persistent samples, the sampling method reported in explain is determined at read time, meaning that whether or not fullCollScan was used is based on the collection size at read time rather than when the sample was generate and persisted. If the collection size changed between persisting and reading then the wrong sampling method might be reported. In order to report this accurately, we'd have to store the actual sampling method used in the sample doc metadata.

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
keep-team-assignmentsampling-code-quality