[SERVER-51166] Missing data directory is not indicated as error Created: 26/Sep/20  Updated: 06/Dec/22  Resolved: 21/Jun/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.2.9
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Oleg Pudeyev (Inactive) Assignee: Backlog - Storage Execution Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Storage Execution
Operating System: ALL
Participants:

 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.



 Comments   
Comment by Connie Chen [ 21/Jun/21 ]

This is fixed in 4.4, so we will not be doing this for 4.2

Generated at Thu Feb 08 05:24:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.