MongoDB 4.2 using change streams with read concern majority disabled in a PSA deployment

Database Administrators Asked by Franz Huebner on January 6, 2022

I currently run a PSA (Primary, Secondary, Arbiter) deployment and thous only have two databearing nodes.
In case of a databearing node going down, read concern majority prevented the change stream to be read out of.
In MongoDB 4.2 it is now possible to disable the read concern majority for the replicaset and still use the change stream (See

I disabled read concern majority in my deployment and the change stream works as expected.
If I shut down the secondary node the change stream can’t be read out of again.

Is this the expected behaviour? I would have assumed that with 4.2 a majority is not necessary anymore to read the change stream.
If that is the case, is there any way to read the change stream in a PSA deployment with only a minority of data bearing nodes?

One Answer

This is not the expected behavior. Since you have the majority members of the replica set online, it should work

Just wanted to confirm:

  1. Are you using version 4.2?
  2. After installing/upgrading the replica set, have you set the feature compatibility version to 4.2 by executing the below command?

    db.adminCommand( { setFeatureCompatibilityVersion: 4.2 } )

Thank you!

Answered by Anban on January 6, 2022

Add your own answers!

Related Questions

ERROR: no schema has been selected to create in

3  Asked on February 2, 2021 by emanuele-paolini


ORACLE ASM present one or more LUNs?

1  Asked on January 31, 2021 by miguel-ramires


Order by certain enum values first

1  Asked on January 30, 2021 by milkncookiez


I have 600% high CPU usage mysqld

1  Asked on January 30, 2021 by alfredo


How to create a SELECT statement involving a subtype

1  Asked on January 26, 2021 by elephantcoder


How to move SSISDB database

2  Asked on January 24, 2021 by jac


Ident authentication failed for user “postgres”

1  Asked on January 23, 2021 by lloyd-thomas


Creacte Mysql Database copy

1  Asked on January 20, 2021 by viktor-mandrika


Fetching Remote Encryption Key for MariaDB

1  Asked on January 14, 2021 by vince-kronlein


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP