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

Informative error messages

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.3
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • None
    • Fully Compatible
    • BUILD 3 05/15/15

      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?

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

              Created:
              Updated:
              Resolved: