-
Type: Task
-
Resolution: Unresolved
-
Priority: Trivial - P5
-
None
-
Affects Version/s: None
-
Component/s: Querying
-
Query Execution
-
Minor Change
The confusion between the generic 'maxTimeMS' argument used for any command and the specific role it plays in a getMore on a tailable, awaitData cursor leads to some unfortunate complexity in the server. The server needs to remember and special-case this argument for getMores. In those cases, the server needs to avoid setting a deadline on the operation to prevent a "fake" timeout, but remember and parse maxTimeMS as a time limit for how long to wait for new inserts.
This confusion has lead to many build failures, increased to complexity of development for change streams, and adds some overhead to command processing, although this overhead is probably negligible.
- is related to
-
SERVER-38727 Add command parameter to specify max wait time for speculative majority reads
- Closed
- related to
-
SERVER-37560 Allow change streams to work with speculative majority reads
- Closed