[SERVER-56353] Clear leftover incomplete chunk entries on FCV upgrade from 4.4 to 5.0 Created: 26/Apr/21 Updated: 29/Oct/23 Resolved: 28/Apr/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Kaloian Manassiev | Assignee: | Kaloian Manassiev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | PM-1965-Milestone-0-Metadata-Format | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Participants: |
| Description |
|
Sharded DDL running under versions 4.4 and earlier can possibly fail after having written some config.chunks entries, but before it has written the config.collection entry to join them. Such chunks would become unreachable and are effectively garbage. Since they are unreachable for the upgrade process as well, it means we cannot assign UUID to them and because of this they would result in a duplicate key error on the uuid, min index. Because of this, they should be deleted after we have patched up all the chunks reachable from config.collections entries. |
| Comments |
| Comment by Githook User [ 28/Apr/21 ] |
|
Author: {'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}Message: |