Skip to main content

Administrating MarkLogic Server

Rolling Back a Transaction

Use Host Status page of the Admin Interface to rollback stalled or long-running transactions, discarding any updates made by the transaction. The Host Status page includes a list of transactions which have started but not yet completed.

Note

To rollback the MarkLogic Server portion of a prepared XA transaction, see Rolling Back a Prepared XA Transaction Branch.

To rollback a transaction using the Admin Interface, follow these steps:

  1. Open the Admin Interface in your browser by navigating to http://yourhost:8001.

  2. Click Hosts in the left tree menu. The tree expands to show available hosts.

  3. Click the name of the target host in the left tree menu. The configuration view for the host appears.

  4. Click the Status tab at the top of the page. The status view for the host appears.

  5. Locate the target transaction in transaction list. If you do not see a transaction list on the status page, then there are no open transactions on this host.

  6. Click [rollback] next to a transaction to initiate a transaction rollback. For example:

    Screenshot showing the rollback link.

    A confirmation dialog appears.

  7. Click OK to confirm the rollback. The Host Status page appears.

There may be a slight delay between when a rollback is initiated and when the transaction terminates. During this period, the transaction still appears on the host status page, with a transaction status of “awaiting rollback”.