Hi Team,
I have a replica-set running with mmapv1 storage engine and mongo Version 3.6.17. Its a 4Member + 1 arbiter architecture. Please see the ps output from all the VMs for this replica-set. You can see the command args are same.
DEP1SM03
root 10080 1 31 Mar16 ? 05:32:14 /usr/bin/mongod --ipv6 --nojournal --noprealloc --smallfiles --slowms 500 --storageEngine mmapv1 --bind_ip_all --port 27727 --dbpath=/var/data/sessions.1/set02b --replSet set02b --fork --pidfilepath /var/run/sessionmgr-27727.pid --oplogSize 5120 --logpath /var/log/mongodb-27727.log --logappend --quiet
DEP1SM04
root 17705 1 26 Mar16 ? 04:46:38 /usr/bin/mongod --ipv6 --nojournal --noprealloc --smallfiles --slowms 500 --storageEngine mmapv1 --bind_ip_all --port 27727 --dbpath=/var/data/sessions.1/set02b --replSet set02b --fork --pidfilepath /var/run/sessionmgr-27727.pid --oplogSize 5120 --logpath /var/log/mongodb-27727.log --logappend --quiet
DAP1SM03
root 10053 1 11 Mar16 ? 01:58:58 /usr/bin/mongod --ipv6 --nojournal --noprealloc --smallfiles --slowms 500 --storageEngine mmapv1 --bind_ip_all --port 27727 --dbpath=/var/data/sessions.1/set02b --replSet set02b --fork --pidfilepath /var/run/sessionmgr-27727.pid --oplogSize 5120 --logpath /var/log/mongodb-27727.log --logappend --quiet
DAP1SM04
root 10053 1 1 Mar16 ? 00:18:19 /usr/bin/mongod --ipv6 --nojournal --noprealloc --smallfiles --slowms 500 --storageEngine mmapv1 --bind_ip_all --port 27727 --dbpath=/var/data/sessions.1/set02b --replSet set02b --fork --pidfilepath /var/run/sessionmgr-27727.pid --oplogSize 5120 --logpath /var/log/mongodb-27727.log --logappend --quiet
But when i connect to mongo replicas individually only for one Secondary the startup warning shows a warning that readConcern:majority is enabled. So im really confused if the readConcern is really enabled in this replica-set or not.
The db.serverStatus().storageEngine shows supportsCommittedReads is false.
{
"name" : "mmapv1",
"supportsCommittedReads" : false,
"readOnly" : false,
"persistent" : true
}
[root@DAP1SM04 ~]# mongo DEP1SM03:27727
MongoDB shell version v3.6.17
connecting to: mongodb://DEP1SM03:27727/test?gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("fedcd09f-8a25-45d2-8d0c-c5fa779c9588") }
MongoDB server version: 3.6.17
Server has startup warnings:
2021-03-16T09:50:49.459+0000 I CONTROL [initandlisten]
2021-03-16T09:50:49.459+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2021-03-16T09:50:49.459+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2021-03-16T09:50:49.459+0000 I CONTROL [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2021-03-16T09:50:49.459+0000 I CONTROL [initandlisten]
2021-03-16T09:50:50.163+0000 I REPL [replexec-0]
2021-03-16T09:50:50.163+0000 I REPL [replexec-0] ** WARNING: This replica set was configured with protocol version 0.
2021-03-16T09:50:50.163+0000 I REPL [replexec-0] ** This protocol version is deprecated and subject to be removed
2021-03-16T09:50:50.163+0000 I REPL [replexec-0] ** in a future version.
set02b:PRIMARY> exit
bye
[root@DAP1SM04 ~]# mongo DEP1SM04:27727
MongoDB shell version v3.6.17
connecting to: mongodb://DEP1SM04:27727/test?gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("c3392728-2a49-419c-9c6f-7d052b8e63ba") }
MongoDB server version: 3.6.17
Server has startup warnings:
2021-03-16T09:23:51.388+0000 I CONTROL [initandlisten]
2021-03-16T09:23:51.388+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2021-03-16T09:23:51.388+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2021-03-16T09:23:51.388+0000 I CONTROL [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2021-03-16T09:23:51.388+0000 I CONTROL [initandlisten]
2021-03-16T09:23:51.547+0000 I REPL [replexec-0]
2021-03-16T09:23:51.547+0000 I REPL [replexec-0] ** WARNING: This replica set uses arbiters, but readConcern:majority is enabled
2021-03-16T09:23:51.547+0000 I REPL [replexec-0] ** for this node. This is not a recommended configuration. Please see
2021-03-16T09:23:51.547+0000 I REPL [replexec-0] ** https://dochub.mongodb.org/core/psa-disable-rc-majority-3.6
2021-03-16T09:23:51.547+0000 I REPL [replexec-0]
2021-03-16T09:23:51.547+0000 I REPL [replexec-0]
2021-03-16T09:23:51.547+0000 I REPL [replexec-0] ** WARNING: This replica set was configured with protocol version 0.
2021-03-16T09:23:51.547+0000 I REPL [replexec-0] ** This protocol version is deprecated and subject to be removed
2021-03-16T09:23:51.547+0000 I REPL [replexec-0] ** in a future version.
set02b:SECONDARY> exit
bye
[root@DAP1SM04 ~]# mongo DAP1SM03:27727
MongoDB shell version v3.6.17
connecting to: mongodb://DAP1SM03:27727/test?gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("54e9cc35-0043-4272-803e-dd3f90f89f5c") }
MongoDB server version: 3.6.17
Server has startup warnings:
2021-03-16T09:50:48.430+0000 I CONTROL [initandlisten]
2021-03-16T09:50:48.430+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2021-03-16T09:50:48.430+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2021-03-16T09:50:48.430+0000 I CONTROL [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2021-03-16T09:50:48.430+0000 I CONTROL [initandlisten]
2021-03-16T09:50:48.630+0000 I REPL [replexec-0]
2021-03-16T09:50:48.630+0000 I REPL [replexec-0] ** WARNING: This replica set was configured with protocol version 0.
2021-03-16T09:50:48.630+0000 I REPL [replexec-0] ** This protocol version is deprecated and subject to be removed
2021-03-16T09:50:48.630+0000 I REPL [replexec-0] ** in a future version.
set02b:SECONDARY> exit
bye
[root@DAP1SM04 ~]# mongo DAP1SM04:27727
MongoDB shell version v3.6.17
connecting to: mongodb://DAP1SM04:27727/test?gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("2e3d35e3-d001-49e5-86e8-5c69da316521") }
MongoDB server version: 3.6.17
Server has startup warnings:
2021-03-16T09:24:48.417+0000 I CONTROL [initandlisten]
2021-03-16T09:24:48.417+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2021-03-16T09:24:48.417+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2021-03-16T09:24:48.417+0000 I CONTROL [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2021-03-16T09:24:48.417+0000 I CONTROL [initandlisten]
2021-03-16T09:24:48.886+0000 I REPL [replexec-0]
2021-03-16T09:24:48.886+0000 I REPL [replexec-0] ** WARNING: This replica set was configured with protocol version 0.
2021-03-16T09:24:48.886+0000 I REPL [replexec-0] ** This protocol version is deprecated and subject to be removed
2021-03-16T09:24:48.886+0000 I REPL [replexec-0] ** in a future version.
set02b:SECONDARY> DAP1SM04:27727
Is it a bug? or the readConcern:majority is really enabled?