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

mongoexport with empty $query errors with bogus $snapshot message

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.4.9
    • Tools
    • None
    • ALL

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: