what will happen if MongoDB primary host is down and secondary is out of sync. will we lose transaction?
When you managed to get that A running, it will roll-back all those transactions what are not on B, because now B have newer transactions and it's Primary. That you get when you &quot;force&quot; Secondary to be primary against replica sets will.