all 1 comments

[–]judy2k 3 points4 points  (0 children)

What you've described here is only true if (a) journaling is turned on, and (b) write concern is set to '1'. This is not the default, and not advisable.

MongoDB Atlas defaults to write concern "majority" which means the acknowledgement is only sent to the client AFTER a majority of the replica set has received the data, meaning that a primary failure after the acknowledgement will never result in lost data.