mongoexport with empty $query errors with bogus $snapshot message

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.4.9
    • Component/s: Tools
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      With mongoexport 2.4.9 on Ubuntu, I get

      { "$err" : "E12001 can't sort with $snapshot", "code" : 12001 }

      when running:

      mongoexport -c test --query '{$query: {}, $orderby: {count: 1}}'

      but not when adding a bogus query for count existing:

      mongoexport -c test --query '{ $query: {count: {$exists: 1} }, $orderby: {count: 1}}'

      The issue was discussed on GitHub but apparently not fully fixed, and subsequently ignored: https://github.com/mongodb/mongo/pull/207

              Assignee:
              Unassigned
              Reporter:
              Dan Dascalescu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: