Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-39375

trafficRecordingFileToBSONArr must not close an unopened file

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.8
    • Shell
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2019-02-11
    • 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

      Attachments

        Activity

          People

            jason.carey@mongodb.com Jason Carey
            jason.carey@mongodb.com Jason Carey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: