Skip to main content
Pentaho Documentation

Transactional Databases and Job Rollback

Overview

Provides informatino onh how to roll back jobs should transformations and jobs fail.

By default, when you run a job or transformation that makes changes to a database table, changes are committed as the transformation or job executes.  Sometimes, this can cause an issue if a job or transformation fails. For example, if you run a job that updates then syncs two tables, but the job fails before you can write to the second table, the first table might be updated and the other might not, rendering them both out of sync. If this is a concern, consider implementing job rollback by making the transformation or job databases (or both) transactional. When you do this, changes to a data source occur only if a transformation or job completes successfully. Otherwise, the information in both data sources remain unchanged.

The following sections provide procedural information on how to make databases transactional. The wiki provides more detail.

Make a Transformation Database Transactional

To make a transformation database transactional, complete these steps.
  1. In the PDI client, open a transformation.
  2. Right-click the transformation canvas and select Properties from the menu that appears.
  3. Click the Miscellaneous tab.
  4. Select the Make the transformation database transactional checkbox.
  5. Click OK to close the window.

Make a Job Database Transactional

To make a job database transactional, complete these steps.
  1. In PDI client, open a job.
  2. Right-click in the job canvas and select Properties from the menu that appears.
  3. Click the Transactions tab.
  4. Select the Make the job database transactional checkbox.
  5. Click OK to close the window.