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

XMLWordPrintableJSON

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

      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
              Reporter:
              David Bartley
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: