We use a MongoDB replica set, where after some time the primary set will throw the exception below and cannot recover from it. The error occurs only when we run the server in Replicaset mode.
Invariant failure !"WriteConflictException not allowed in saveState" src/mongo/db/query/plan_yield_policy.cpp 95
After the above error, none of the MongoDB servers (in the replica set) are available and the following message is repeated in the mongo.log:
REPL [ReplicationExecutor] stepping down from primary, because a new term has begun: 32
This is my server configuration:
Server 1:
- MongoDB (Percona version 3.2.4-1.0rc2)
- MongoDB Arbiter (Percona version 3.2.4-1.0rc2)
Server 2:
- MongoDB (Percona version 3.2.4-1.0rc2)