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

ProgramOutputMultiplexer's log buffer grows without bound

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.5.1
    • Component/s: Shell
    • Server Development Platform
    • ALL
    • 0
    • 2

      The ProgramOutputMultiplexer includes a buffer which stores all of the logs from all of the mongo shell's child processes. The buffer is not cleared until the mongo shell exits.

      In tests which produce large amounts of log output (for example, tests which run with a higher log verbosity) this can cause the shell to crash while attempting to grow the buffer to an unreasonable size.

      We should consider changing the ProgramOutputMultiplexer to only store the output from the child processes in an "opt-in" fashion, rather than by default. As far as I know, the number of tests which rely on re-reading log output is relatively small.

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: