When running a getMore command on a find cursor on a sharded cluster, with the allowPartialResults and maxTimeMS parameters set, we sometimes return a maxTimeMSExpired error even when partial results are available from at least one shard.
This is related to the functionality introduced in SERVER-57469.
In these cases, a call to ClusterClientCursorImpl::partialResultsReturned() is unexpectedly returning false because the ClusterClientCursorImpl::next() does not set _maxTimeMSExpired in a case when the BlockingResultsMerger can return a MaxTimeMSExpired error.
- is caused by
-
SERVER-57469 Return partial results from subset of shards when `maxTimeMS` and `allowPartialResults` are set
- Closed