[SERVER-39375] trafficRecordingFileToBSONArr must not close an unopened file Created: 05/Feb/19 Updated: 29/Oct/23 Resolved: 05/Feb/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.8 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mira Carey | Assignee: | Mira Carey |
| 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 | ||||
| Sprint: | Service Arch 2019-02-11 | ||||
| Participants: | |||||
| Linked BF Score: | 0 | ||||
| Description |
|
The convertTrafficRecordingToBSON function in the shell calls trafficRecordingFileToBSONArr. When called on a non-existant file, this leaves inputFd <0, which causes crashes when ::close is invoked. The fix is to move the guard which cleans up the file until after the check that it is valid |
| Comments |
| Comment by Githook User [ 05/Feb/19 ] |
|
Author: {'name': 'Jason Carey', 'email': 'jcarey@argv.me', 'username': 'hanumantmk'}Message: The convertTrafficRecordingToBSON function in the shell calls The fix is to move the guard which cleans up the file until after the |