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

Missing data directory is not indicated as error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Won't Fix
    • Affects Version/s: 4.2.9
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL

      Description

      When I start mongod and data directory is missing, I have the following log entry:

      2020-09-26T15:17:12.078-0400 I  STORAGE  [initandlisten] exception in initAndListen: NonExistentPath: Data directory /data/db not found. Create the missing directory or specify another path using (1) the --dbpath command line option, or (2) by adding the 'storage.dbPath' option in the configuration file., terminating
      

      The entry is logged with informational severity (I) but it is an error.

      As a user of the server I expect error entries to be logged with error severity.

      This issue does not exist in 4.4 - the severity there is error.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-execution Backlog - Storage Execution Team
            Reporter:
            oleg.pudeyev Oleg Pudeyev
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: