-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Admin, Concurrency, Internal Code
-
Query Execution
In commands and operations the server should check if there are interrupts (to respond to kill requests or maxTimeMS limits) to react more timely.
Yielding and checking for interrupts are strongly tied together in code (in so much as the yielding code checks for interrupt) but callers should sep. them because while it might not be okay to yield at some points, it is okay to terminate or generate an error for the operation.
A few examples include common commands like count, distinct, findAndModify, update/delete/insert, etc...