Skip to content

Incomplete Transactions and MgoPurge

anastasiamac edited this page Jul 26, 2016 · 9 revisions

Symptom

cannot find transaction ObjectIdHex("..")

Solution

Before running the tool, please sanity check the system:

  1. Shut down machine agents on all state servers: stop machine agent;
  2. Make sure that MongoDB replicaset is in good state - on each state server, login into its MongoDB and find out database opinion on the health and status of replicaset by running rs.status(). There should be one PRIMARY node on one of the state severs and the rest should be SECONDARY.

Run the mgopurge tool on any state server. You should get output of what the tool is doing. If you encounter any further problems, this output may be of value, please keep it handy.

After the tool is run, restart machine agents: start machine agent.

These instructions are adapted from mgopurge original one to cater for HA as well as different series.

Clone this wiki locally