Hi there!
I have an issue with a PSA mongo replica after having upgraded it from 3.* to 7.0.8.
I suspect that it is related to the write concern: https://www.mongodb.com/docs/manual/reference/write-concern/#implicit-default-write-concern
Whenever I shut down one of data-bearing nodes (secondary or primary with rs.stepDown), rs.status() indicates that the replica set has a primary, but applications don’t work. There is nothing in mongo logs which I could discern to be relevant, but as soon as a stopped server is restarted everything immediately starts working, no matter which one ends up being a primary.
This replica set used to have a couple more hidden secondaries for backups at different times (not sure if it may be relevant), but they were removed.
Also tried deploying a 3rd data-bearing node and making it a PSS replica set, in which case I could safely shut down 1 of the nodes and perform the necessary maintenance as it is intended.
It seems to me that it strongly suggests that write concern is the culprit here, so I tried changing the default, and set it to 1 with setDefaultRWConcern. Alas, it didn’t seem to help.
Can anyone suggest what I’m missing here? I used to be able to perform this sort of maintenance in the past before the upgrade.
Thanks!