SERVER-139201ClosedFixed

Disallow `sampleSize` parameter to `analyze` command in sample mode

When writing samples, we no longer take the sample size as a parameter to the `analyze` command. However, `sampleSize` remains a parameter because histograms mode uses it. To avoid confusion, we want to add a `uassert` that blocks users from calling `analyze` in sample mode and passing the `sampleSize` parameter.

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
analyze-hardening