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

Informative error messages

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.3
    • Component/s: Indexing
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      BUILD 3 05/15/15

      Description

      A relatively common mistake by new users is trying to sort a large collection without an index. Doing this on my Ubuntu server (mongodb 2.4.9) raises the following error message:

      Error: too much data for sort() with no index. add an index or specify a smaller limit

      This error is very helpful. However trying the same thing on OSX (both with 3.0.2 and 2.6.7) raises the following error:

      Error: Executor error: Overflow sort stage buffered data usage of 33554467 bytes exceeds internal limit of 33554432 bytes

      The latter error message is not very helpful. Is there something I have to configure to get the error message that I was seeing in 2.4.9?

        Attachments

          Activity

            People

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            Jeroenooms Jeroen Ooms [X] (Inactive)
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: