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

Startup warnings should be suppressed for non-interactive shell sessions

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.3.2, 2.4.0-rc0
    • Fix Version/s: 2.4.0-rc2
    • Component/s: Shell
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible

      Description

      With SERVER-7740, startupWarnings are always displayed on startup. These should be suppressed for non-interactive shell sessions or with the --quiet parameter.

      The starting warnings output is undesirable for scripting interaction.

      For example:

      mongo --quiet <<< "show dbs" > ./dbs.log

      $ cat dbs.log
      Server has startup warnings: 
      Tue Feb 12 11:32:59.378 [initandlisten] 
      Tue Feb 12 11:32:59.378 [initandlisten] ** WARNING: soft rlimits too low. rlimits set to 512 processes, 2560 files. Number of processes should be at least 1280 : 0.5 times number of files.
      Tue Feb 12 11:32:59.552 [initandlisten] 
      admin   0.203125GB
      config  0.203125GB
      ...

        Attachments

          Activity

            People

            Assignee:
            tad Tad Marshall
            Reporter:
            stennie Stennie Steneker
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: