[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: |
|
||||||||
| 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: (cherry picked from commit fb9e759ee61a967c875fad7c158ebff049985ba5) |
| Comment by Githook User [ 26/Apr/21 ] |
|
Author: {'name': 'Jason Zhang', 'email': 'jason.zhang@mongodb.com', 'username': 'jz1242'}Message: |