SERVER-139051ClosedFixed

Fix race in deprioritization_stats_and_observability.js currentOp priorityLowered check

h2. Problem similar to a issue in [https://jira.mongodb.org/browse/SERVER-131934] we previously seen in delinquent_ops.js. deprioritization_stats_and_observability.js flakes in should report 'priorityLowered: true' in $currentOp while active. The test waits for setPreYieldWait to be entered 3 times, then takes a single $currentOp snapshot and asserts priorityLowered: true. With batchSize: 3 and internalQueryExecYieldIterations: 1, those three pre-yield pauses are the entire find. The find

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.