[SERVER-82069] Throwable function used in scope guard when registering index Created: 11/Oct/23 Updated: 30/Oct/23 Resolved: 20/Oct/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 7.1.1, 7.2.0-rc0, 7.0.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Marcos José Grillo Ramirez | Assignee: | Marcos José Grillo Ramirez |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | shardingemea-qw | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Backport Requested: |
v7.1, v7.0, v6.0
|
||||||||||||||||
| Sprint: | Sharding EMEA 2023-10-16, Sharding EMEA 2023-10-30 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Linked BF Score: | 32 | ||||||||||||||||
| Story Points: | 2 | ||||||||||||||||
| Description |
|
As part of the API, in order to ensure that migrations are always resumed, sharding_ddl_util::resumeMigrations is called in an ON_BLOCK_EXIT. Considering that if there is a stepdown in the config server when trying to resume migrations, the function might throw in that scenario, this might lead to a crash in the server because the scope guard destructor is declared as noexcept. |
| Comments |
| Comment by Githook User [ 20/Oct/23 ] |
|
Author: {'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}Message: (cherry picked from commit 1319f2ec72b12400ce56ce05f4673ba37a75d4b8) |
| Comment by Githook User [ 20/Oct/23 ] |
|
Author: {'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}Message: (cherry picked from commit 1319f2ec72b12400ce56ce05f4673ba37a75d4b8) |
| Comment by Githook User [ 20/Oct/23 ] |
|
Author: {'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}Message: |