[SERVER-29742] mongodump only creates a partial dump Created: 20/Jun/17 Updated: 29/Jul/17 Resolved: 28/Jun/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Christian Indra | Assignee: | Mark Agarunov |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
I tried to execute mongodump with the -q parameter.
But it dumps only 241512 documents. (according to ouput of mongodump)
But if i use itcount() also return the wrong number of documents (241512):
|
| Comments |
| Comment by Christian Indra [ 29/Jun/17 ] |
|
I'm nor sure if it's the same issue. Because also the mongodump is affected. Not only the count method. |
| Comment by Mark Agarunov [ 28/Jun/17 ] |
|
Hello chi@tractive.com, Thank you for providing this information. Looking over this, it seems that the behavior you're seeing is caused by the same issue as Thanks, |
| Comment by Christian Indra [ 23/Jun/17 ] |
|
Now i tried to check the distribution of the data. And here on the mongod-host it doesn't matter which command i use:
So it's just not working when i use the mongos for the same query. Note: The numbers a slightly different, because i used a different day for the query. |
| Comment by Christian Indra [ 23/Jun/17 ] |
|
I have 3 shards. I have attached the logs of the primary of each shard and the mongos that where used by mongodump. |
| Comment by Mark Agarunov [ 22/Jun/17 ] |
|
Hello chi@tractive.com, Thank you for the report. So that we can further investigate the behavior of mongodump described, could you please provide the complete log files from mongod from the affected nodes when this issue occurred. This may give some more insight into why there is a discrepancy between the number of documents returned. Thanks, |