[SERVER-12665] mongoexport with empty $query errors with bogus $snapshot message Created: 10/Feb/14  Updated: 10/Dec/14  Resolved: 10/Feb/14

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 2.4.9
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Dan Dascalescu Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-12054 Add --sort as option for mongoexport Closed
Operating System: ALL
Participants:

 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



 Comments   
Comment by Daniel Pasette (Inactive) [ 10/Feb/14 ]

2.5.5 adds the option --sort to mongoexport. See SERVER-12054

Generated at Thu Feb 08 03:29:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.