[SERVER-45992] InMemory engine startupwarnings confusing Created: 05/Feb/20  Updated: 29/Oct/23  Resolved: 09/Oct/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0, 4.4.2, 4.2.11, 4.0.22

Type: Bug Priority: Major - P3
Reporter: Emilio Scalise Assignee: Gregory Noma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-44796 Adjust nojournal startup warning to b... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4, v4.2, v4.0, v3.6
Steps To Reproduce:

Run a mongod process with engine=inMemory and writeConcernMajorityJournalDefaul=true (default value).

Sprint: Execution Team 2020-10-19
Participants:

 Description   

As a consequence of the changes in SERVER-44796 if you start a mongod with the engine=inMemory you get duplicate startup warnings and the one about the journal may be confusing:

2020-02-05T18:07:30.855+0000 I REPL     [conn36] ** WARNING: This replica set node is running without journaling enabled but the
2020-02-05T18:07:30.855+0000 I REPL     [conn36] **          writeConcernMajorityJournalDefault option to the replica set config
2020-02-05T18:07:30.855+0000 I REPL     [conn36] **          is set to true. The writeConcernMajorityJournalDefault
2020-02-05T18:07:30.855+0000 I REPL     [conn36] **          option to the replica set config must be set to false
2020-02-05T18:07:30.855+0000 I REPL     [conn36] **          or w:majority write concerns will never complete.
2020-02-05T18:07:30.855+0000 I REPL     [conn36] **          In addition, this node's memory consumption may increase until all
2020-02-05T18:07:30.855+0000 I REPL     [conn36] **          available free RAM is exhausted.
2020-02-05T18:07:30.855+0000 I REPL     [conn36]
2020-02-05T18:07:30.855+0000 I REPL     [conn36]
2020-02-05T18:07:30.855+0000 I REPL     [conn36] ** WARNING: This replica set node is using in-memory (ephemeral) storage with the
2020-02-05T18:07:30.855+0000 I REPL     [conn36] **          writeConcernMajorityJournalDefault option to the replica set config
2020-02-05T18:07:30.855+0000 I REPL     [conn36] **          set to true. The writeConcernMajorityJournalDefault option to the
2020-02-05T18:07:30.855+0000 I REPL     [conn36] **          replica set config must be set to false
2020-02-05T18:07:30.855+0000 I REPL     [conn36] **          or w:majority write concerns will never complete.
2020-02-05T18:07:30.855+0000 I REPL     [conn36] **          In addition, this node's memory consumption may increase until all
2020-02-05T18:07:30.855+0000 I REPL     [conn36] **          available free RAM is exhausted.

Can we suppress the first warning shown in my example when using engine=inMemory to avoid confusion?

Thanks.



 Comments   
Comment by Githook User [ 21/Oct/20 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-45992 Skip nojournal warning when starting up with inMemory storage engine and writeConcernMajorityJournalDefault=true

(cherry picked from commit 8d91cd9f7887b3b2c44243b6230e676f32fb37a2)
Branch: v4.0
https://github.com/mongodb/mongo/commit/ae47641690c8ff75bd0b729d28d705eacdb84c9d

Comment by Githook User [ 20/Oct/20 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-45992 Skip nojournal warning when starting up with inMemory storage engine and writeConcernMajorityJournalDefault=true
Branch: v4.2
https://github.com/mongodb/mongo/commit/8d91cd9f7887b3b2c44243b6230e676f32fb37a2

Comment by Githook User [ 16/Oct/20 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-45992 Skip nojournal warning when starting up with inMemory storage engine and writeConcernMajorityJournalDefault=true

(cherry picked from commit e0fea67fedfd42aa8368f6be127e2aa81ed50cc7)
Branch: v4.4
https://github.com/mongodb/mongo/commit/3dbc26cc2dbc5408f939ac0ebf43d0c5437d4c76

Comment by Githook User [ 09/Oct/20 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-45992 Skip nojournal warning when starting up with inMemory storage engine and writeConcernMajorityJournalDefault=true
Branch: master
https://github.com/mongodb/mongo/commit/e0fea67fedfd42aa8368f6be127e2aa81ed50cc7

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