[SERVER-6691] mongodumping oplog with timestamp query Created: 02/Aug/12 Updated: 15/Aug/12 Resolved: 02/Aug/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying, Tools |
| Affects Version/s: | 2.0.6 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Nemanja Dubravac | Assignee: | Spencer Brody (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
we're trying to dump a part of our oplog.rs collection, buy issuing this query:
but it doesn't output anything, even though this query from the mongo client gives 2 million results:
please help |
| Comments |
| Comment by Nemanja Dubravac [ 02/Aug/12 ] | ||||
|
i was using 2.0.6, so i guess that was the problem.. | ||||
| Comment by Spencer Brody (Inactive) [ 02/Aug/12 ] | ||||
|
Also, what version of mongodump are you using? Mongodump from the 2.0 series doesn't support the $timestamp syntax for the query argument, you have to use mongodump from 2.2-rc0. It should be fine to use mongodump from 2.2-rc0 with a server from 2.0.6 | ||||
| Comment by Spencer Brody (Inactive) [ 02/Aug/12 ] | ||||
|
So try something like this instead:
| ||||
| Comment by Spencer Brody (Inactive) [ 02/Aug/12 ] | ||||
|
Make sure to escape all dollar signs and quotes properly with backslashes, you can see behavior like that if a symbol isn't escaped. | ||||
| Comment by Nemanja Dubravac [ 02/Aug/12 ] | ||||
|
the exact output from mongodump is:
|