Not able to override WriteConcern.Majority config in mongodb-driver-sync-4.7.0.jar

Hi @Ajay_Tandon

Thanks for your reply.

Consider MongoDB is hosted in 5 nodes and two DCs. We are bringing down one DC completely and trying to write. Write Concern Majority expects 3 nodes ack where as we would have only 2 nodes ack. So we need to change writeConcern to 2.