-
Type:
Investigation
-
Resolution: Won't Do
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Tools and Replicator
This changes the returned error code if a $facet pipeline stage constructs a
document that is larger than the configured memory limit from error code 4031700 to the generic, already existing error code ExceededMemoryLimit (code 146). The specific error code 4031700 has been removed.
Any drivers, tools or application that were reacting on the specific error code 4031700 for handling the specific situation (too much memory usage in a facet stage) can be adjusted to use the generic error code ExceededMemoryLimit instead. This error code is more generic and used by a lot of other places in the server already.
Description of Linked Ticket
DocumentSourceFacet tracks the memory it uses and fails when it exceeds some threshold. For easier discoverability, we should replace the numeric error 4031700 that it throws in this case with the ErrorCodes::ExceededMemoryLimit.
- depends on
-
SERVER-108697 Replace numeric code with ErrorCodes::ExceededMemoryLimit in DocumentSourceFacet
-
- Closed
-