[SERVER-56390] Failed to construct ShardingDDLCoordinators do not get released Created: 27/Apr/21 Updated: 29/Oct/23 Resolved: 03/May/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | Backlog |
| Fix Version/s: | 5.0.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tommaso Tocci | Assignee: | Tommaso Tocci |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | PM-1965-Milestone-1 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||
| Steps To Reproduce: | Apply the provided patch and run:
|
||||||||||||||||||||||||||||
| Sprint: | Sharding EMEA 2021-05-03 | ||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Description |
|
If a ShardingDDLCoordinator throws an exception during its construction phase, before to actually persist its state document on disk, it will reach the onCompletion task and will try to delete its state document, since this document doesn't exists the PrimaryOnlyServiceOpObserver::onDelete() won't be triggered and the instance won't be released from the POS. |
| Comments |
| Comment by Githook User [ 03/May/21 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: |
| Comment by Tommaso Tocci [ 01/May/21 ] |