SERVER-135757ClosedFixed

Prevent delinquency in $update with set of a deep-array index

Setting a deep array index (for example, $set: \{“a.1500001”: 1}) forces path_support.cpp::maybePadTo to append up to 1.5 million null BSON elements to the array one at a time in a loop without interrupt checks. We can easily remediate this by adding a periodic check inside maybePadTo().   Add periodic check in maybePadTo(). There is already a stage in the [delinquency workload |https://github.com/10gen/dsi/pull/6140/changes#diff-d6d429934912251b7f1c6fffea50a52a2369714f64232bb284c691ee8100

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.