[SERVER-49368] Unhandled thread creation causes a server crash while trying to migrate chunk Created: 08/Jul/20  Updated: 27/Oct/23  Resolved: 08/Jul/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Marcos José Grillo Ramirez Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Assigned Teams:
Sharding
Operating System: ALL
Participants:
Linked BF Score: 35

 Description   

On the MigrationDestinationManager when the documents are going to be cloned from the donor shard there is a thread creation using stdx::thread. A failure on the thread creation is not being handled, which might lead to a server crash. An executor could be used instead to prevent the thread creation, or the failure should be handled appropriately to retry the migration eventually.


Generated at Thu Feb 08 05:19:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.