Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-42659

Provide a dedicated error code/name for in-memory-sort-too-big errors

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Minor Change
    • Query 2019-10-21, Query 2019-11-04

      If your query needs an in-memory sort and that requires more than 32 MiB (by default) you'll get a generic error:

      Error: error: {
      	"ok" : 0,
      	"errmsg" : "Executor error during find command :: caused by :: errmsg: \"Sort operation used more than the maximum 1048576 bytes of RAM. Add an index, or specify a smaller limit.\"",
      	"code" : 96,
      	"codeName" : "OperationFailed"
      }
      

      It'd be nice if this had a more specific error that you could programmatically match on.

            Assignee:
            justin.seyster@mongodb.com Justin Seyster
            Reporter:
            bartle David Bartley
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: