[SERVER-56343] Create shallow copy of shell_options in tenant migration passthrough Created: 26/Apr/21  Updated: 29/Oct/23  Resolved: 26/Apr/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0-rc1, 5.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Jason Zhang Assignee: Jason Zhang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.9
Sprint: Sharding 2021-05-03
Participants:
Linked BF Score: 25

 Description   

The pattern for mutating shell_options is to create a shallow copy via .copy() before mutating the shell_options dict. This ensures that we don't modify the shell_options for concurrently running tenant migration passthrough jobs.



 Comments   
Comment by Githook User [ 27/Apr/21 ]

Author:

{'name': 'Jason Zhang', 'email': 'jason.zhang@mongodb.com', 'username': 'jz1242'}

Message: SERVER-56343 Create shallow copy of shell_options in tenant migration passthrough

(cherry picked from commit fb9e759ee61a967c875fad7c158ebff049985ba5)
Branch: v4.9
https://github.com/mongodb/mongo/commit/f1f4676cf4f5585a685f9e71b964d10c3f14d7e1

Comment by Githook User [ 26/Apr/21 ]

Author:

{'name': 'Jason Zhang', 'email': 'jason.zhang@mongodb.com', 'username': 'jz1242'}

Message: SERVER-56343 Create shallow copy of shell_options in tenant migration passthrough
Branch: master
https://github.com/mongodb/mongo/commit/fb9e759ee61a967c875fad7c158ebff049985ba5

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