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

mongoexport with empty $query errors with bogus $snapshot message

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

      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 Unassigned
            Reporter:
            dandv Dan Dascalescu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: