[SERVER-29698] Destination shards should write the last changelog entries after setting state to DONE Created: 16/Jun/17 Updated: 27/Oct/23 Resolved: 30/Nov/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Dianna Hohensee (Inactive) | Assignee: | Pierlauro Sciarelli |
| Resolution: | Gone away | Votes: | 0 |
| Labels: | sharding-common-backlog, sharding-wfbf-day | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Sprint: | Sharding EMEA 2022-12-12 |
| Participants: |
| Description |
|
If the config server is unreachable, the migration will fail on the recipient shard here: https://github.com/mongodb/mongo/blob/d5140178b5eeeec4e8d1ab6d42072e0c0cba8a6a/src/mongo/db/s/migration_destination_manager.cpp#L846-L852 Consider moving the changelog writes to after setting DONE state. Make sure we don't break JS test expectations that look at op entries to wait for steps in the migration to occur, e.g. https://github.com/mongodb/mongo/blob/master/jstests/libs/chunk_manipulation_util.js#L125-L137 |