[SERVER-16987] sh.getRecentMigrations shows aborted migration as success Created: 22/Jan/15 Updated: 25/Jan/17 Resolved: 13/Mar/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding, Shell |
| Affects Version/s: | 2.8.0-rc5 |
| Fix Version/s: | 3.0.3, 3.1.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Asya Kamsky | Assignee: | Randolph Tan |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Backport Completed: | |
| Participants: |
| Description |
|
sh.status was showing a successful migration when there weren't any and I tried it down to this function sh.getRecentMigrations() reporting this as success:
Clearly aborted != success. For inexplicable reasons it's looking for "errmsg" in "moveChunk.from" - rather than "details.note":"aborted" or something in the new actionlog? |
| Comments |
| Comment by Githook User [ 20/Apr/15 ] |
|
Author: {u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}Message: Add more comments (cherry picked from commit 7f73e3e38f9b606574a2b7599e0b0f491b962587) |
| Comment by Githook User [ 20/Apr/15 ] |
|
Author: {u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}Message: (cherry picked from commit 40502abaac233ed0b27a9bf9612bd4df61811a68) |
| Comment by Githook User [ 13/Mar/15 ] |
|
Author: {u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}Message: Add more comments |
| Comment by Githook User [ 13/Mar/15 ] |
|
Author: {u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}Message: |
| Comment by Asya Kamsky [ 04/Mar/15 ] |
|
This helper function aggregation should check for "details.note":"aborted" as well as errmsg. Clearly presence of details.note that says "aborted" indicates migration was not successful. |
| Comment by Asya Kamsky [ 09/Feb/15 ] |
|
I don't have the config DBs anymore. Just turn off balancer, and use manual splits and migrates - try a bunch of them very fast, I'm guessing the failure is due to previous migration still not being finished? |
| Comment by David Hows [ 22/Jan/15 ] |
|
Can you dump your conifg db and attach it? Oh yeah, and what caused the error in the migration? The errmsg should be set every time there is a problem and if its not being set, that should be fixed. |