Mongo primary failover causes rollback

by Zack Newsham   Last Updated October 19, 2019 18:06 PM

I have a replicaset that processes largish batches of inserts (a few million) every night. Last night, the primary failed over and went into a rollback state. All clients which access this replicaset use a connection URL with w=majority. The mongo DB documentation states that this should be sufficient to stop the old primary entering the rollback state. The old primary was in the rollback state for a solid 45 minutes.

Am I missing something in the config to ensure this doesn't happen?

Related Questions

Updated May 14, 2018 13:06 PM

Updated March 09, 2019 06:06 AM

Updated June 12, 2019 17:06 PM

Updated August 13, 2019 20:06 PM