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 https://docs.mongodb.com/manual/release-notes/4.2/#change-stream).
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?
This is not the expected behavior. Since you have the majority members of the replica set online, it should work
Just wanted to confirm:
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
1 Asked on February 4, 2021
2 Asked on February 3, 2021 by leona
3 Asked on February 2, 2021 by emanuele-paolini
1 Asked on January 31, 2021 by miguel-ramires
1 Asked on January 30, 2021 by milkncookiez
2 Asked on January 29, 2021 by chris-jenner
2 Asked on January 28, 2021 by stalinko
1 Asked on January 28, 2021 by thedemonlord
1 Asked on January 26, 2021 by elephantcoder
1 Asked on January 25, 2021 by rdrgtec
2 Asked on January 25, 2021 by dstr
2 Asked on January 24, 2021 by jac
1 Asked on January 23, 2021 by lloyd-thomas
1 Asked on January 18, 2021 by narendra
1 Asked on January 14, 2021 by din
1 Asked on January 14, 2021 by vince-kronlein
2 Asked on January 14, 2021 by nico-m
3 Asked on January 13, 2021 by roy-hinkley
Get help from others!
Recent Questions
Recent Answers
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP