[SERVER-28366] mongod --repair fails on a secondary when --replSet is passed. Created: 17/Mar/17 Updated: 31/May/17 Resolved: 23/Mar/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin |
| Affects Version/s: | 3.2.12 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Filip Havlí?ek | Assignee: | Mark Agarunov |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
GNU/Linux Debian Wheezy x86_64 |
||
| Attachments: |
|
||||||||||
| Operating System: | ALL | ||||||||||
| Steps To Reproduce: |
|
||||||||||
| Participants: |
| Description |
|
We use repairDatabase (https://docs.mongodb.com/v3.2/reference/command/repairDatabase/) as the way to reclaim disk space. After upgrade to 3.2.12 (from 3.0.8) it doesn't work with mmapv1 and repair process ends with fatal assertion. With wiredTiger storage engine repair works.
|
| Comments |
| Comment by Filip Havlí?ek [ 23/Mar/17 ] |
|
Hi, Thank you. You're right, I forgot this. Without --replSet it works. Thank you. You solved my problem. I will modify repair (reclaim disk space) process. |
| Comment by Mark Agarunov [ 22/Mar/17 ] |
|
Hello filip.havlicek@livesport.eu, Thank you for the report. Looking over the output you've provided, I am able to reproduce the behavior you've described. However, may be expected behavior. According to the documentation: Reference > Database Commands > Administration Commands > repairDatabase Behavior: Please try running this without the --replSet parameter and let us know if this works as expected. Thanks, |
| Comment by Filip Havlí?ek [ 17/Mar/17 ] |
|
I'm sorry for mistakes, version of mongodb is 3.2.12. Because of bad readability I will attach separate files with logs and steps to reproduce. |