Arjuna PROD x

 

 

 

 

 

JBoss Transactions 4.2

Failure Recovery Guide

TX-FRG-3/31/06

 

 

 

 

 

 

 

 

 

 

 

 

 

Contents



 

 


About This Guide

The Failure Recovery Guide contains information on how to use JBoss Transactions 4.2.1

This guide is most relevant to engineers who are responsible for administering JBoss Transactions 4.2 installations.

You should have installed JBoss Transactions 4.2

This guide contains the following chapters:

        Chapter 1, Architecture of the Recovery Manager: explains the internal architecture of the Recovery Manager.

        Chapter 2, How JBossTS manages the OTS Recovery Protocol: explains how JBossTS deals with particular features of Object Request Brokers to implement the recovery defined by the OTS specification in a optimistic way.

The following conventions are used in this guide:

Convention

Description

Italic

In paragraph text, italic identifies the titles of documents that are being referenced.� When used in conjunction with the Code text described below, italics identify a variable that should be replaced by the user with an actual value.

Bold

Emphasizes items of particular importance.

Code

Text that represents programming code.

Function | Function

A path to a function or dialog box within an interface.� For example, �Select File | Open.� indicates that you should select the Open function from the File menu.

( ) and |

Parentheses enclose optional items in command syntax. The vertical bar separates syntax items in a list of choices. For example, any of the following three items can be entered in this syntax:

persistPolicy (Never | OnTimer | OnUpdate | NoMoreOftenThan)

Note:

Caution:

A note highlights important supplemental information.

A caution highlights procedures or information that is necessary to avoid damage to equipment, damage to software, loss of data, or invalid test results.

Table 1 �������� Formatting Conventions

In addition to this guide, the following guides are available in the JBoss Transactions 4.2 documentation set:

        JBoss Transactions 4.2 Release Notes:� Provides late-breaking information about JBoss Transactions 4.2.

        JBoss Transactions 4.2 Installation Guide:� This guide provides instructions for installing JBoss Transactions 4.2.

        JBoss Transactions 4.2 Users Guide:� Provides guidance for writing applications.

Questions or comments about JBoss Transactions 4.2 should be directed to our support team.


Chapter 1  

Architecture of the Recovery Manager

The main architectural components within Crash Recovery are illustrated in the diagram below:



The Recovery Manager is a daemon process responsible for performing crash recovery. Only one Recovery Manager runs per node. The Object Store provides persistent data storage for transactions to log data. During normal transaction processing each transaction will log persistent data needed for the commit phase to the Object Store. On successfully committing a transaction this data is removed, however if the transaction fails then this data remains within the Object Store.

The Recovery Manager functions by:

       Periodically scanning the Object Store for transactions that may have failed. Failed transactions are indicated by the presence of log data after a period of time that the transaction would have normally been expected to finish.

       Checking with the application process which originated the transaction whether the transaction is still in progress or not

       Recovering the transaction by re-activating the transaction and then replaying phase two of the commit protocol.

The following sections describe the architectural components in more detail

On initialization the Recovery Manager first loads in configuration information via a properties file. This configuration includes a number of recovery activators and recovery modules, which are then dynamically loaded.

Since the version 3.0 of JBossTS, the Recovery Manager is not specifically tied to an Object Request Broker or ORB. Hence, the OTS recovery protocol is not implicitly enabled. To enable such protocol, we use the concept of recovery activator, defined with the interface RecoveryActivator, which is used to instantiate a recovery class related to the underlying communication protocol.� For instance, when used with OTS, the RecoveryActivitor has the responsibility to create a RecoveryCoordinator object able to respond to the replay_completion operation.

All RecoveryActivator instances inherit the same interface. They are loaded via the following recovery extension property:

<property�

�� name="com.arjuna.ats.arjuna.recovery.recoveryActivator_<number>"�

�� value="RecoveryClass" />

For instance the RecoveryActivator provided in the distribution of JTS/OTS, which shall not be commented, is as follow:

<property

�� name="com.arjuna.ats.arjuna.recovery.recoveryActivator_1"

�� value="com.arjuna.ats.internal.jts.orbspecific.recovery.

RecoveryEnablement/>

When loaded all RecoveryActivator instances provide the method startRCservice invoked by the Recovery Manager and used to create the appropriate Recovery Component able to receive recovery requests according to a particular transaction protocol. For instance the RecoveryCoordinator defined by the OTS protocol.

Each recovery module is used to recover a different type of transaction/resource, however each recovery module inherits the same basic behavior.

Recovery consists of two separate passes/phases separated by two timeout periods. The first pass examines the object store for potentially failed transactions; the second pass performs crash recovery on failed transactions. The timeout between the first and second pass is known as the backoff period. The timeout between the end of the second pass and the start of the first pass is the recovery period. The recovery period is larger than the backoff period.

The Recovery Manager invokes the first pass upon each recovery module, applies the backoff period timeout, invokes the second pass upon each recovery module and finally applies the recovery period timeout before restarting the first pass again.

The recovery modules are loaded via the following recovery extension property:

� com.arjuna.ats.arjuna.recovery.recoveryExtension<number>=<RecoveryClass>

The backoff period and recovery period are set using the following properties:

� com.arjuna.ats.arjuna.recovery.recoveryBackoffPeriod� (default 10 secs)

� com.arjuna.ats.arjuna.recovery.periodicRecovery������ (default 120 secs)

The following java classes are used to implement the Recovery Manager:

       package com.arjuna.ats.arjuna.recovery :

RecoveryManager � The daemon process that starts up by instantiating an instance of the RecoveryManagerImple class.

RecoveryEnvironment - Properties used by the recovery manager.

RecoveryConfiguration - Specifies the name of the Recovery Manager property file.�
(ie RecoveryManager-properties.xml)

       package com.arjuna.ats.internal.ts.arjuna.recovery :

RecoveryManagerImple - Creates and starts instances of the RecActivatorLoader, the PeriodicRecovery thread and the ExpiryEntryMonitor thread.

RecActivatorLoader - Dynamically loads in the RecoveryActivator specified in the Recovery Manager property file. Each RecoveryActicator is specified as a recovery extension in the properties file

PeriodicRecovery - Thread which loads each recovery module, then calls the first pass method for each module, applies the backoff period timeout, calls the second pass method for each module and applies the recovery period timeout.

RecoveryClassLoader - Dynamically loads in the recovery modules specified in the Recovery Manager property file.� Each module is specified as a recovery extension in the properties file (i.e., com.arjuna.ats.arjuna.recovery.recoveryExtension1= com.arjuna.ats.internal.ts.arjuna.recovery.AtomicActionRecoveryModule).

Note:               By default, the recovery manager listens on the first available port on a given machine. If you wish to control the port number that it uses, you can specify this using the com.arjuna.ats.arjuna.recovery.recoveryPort attribute.

Embedding the Recovery Manager

In some situations it may be required to embed the RecoveryManager in the same process as the transaction service. In this case you can create an instance of the RecoveryManager through the manager method on com.arjuna.ats.arjuna.recovery.RecoveryManager. A RecoveryManager can be created in one of two modes, selected via the parameter to the manager method:

(i)          INDIRECT_MANAGEMENT: the manager runs periodically but can also be instructed to run when desired via the scan operation or through the RecoveryDriver class to be described below.

(ii)         DIRECT_MANAGEMENT: the manager does not run periodically and must be driven directly via the scan operation or RecoveryDriver.

Managing recovery directly

As already mentioned, recovery typically happens at periodic intervals. If you require to drive recovery directly, then there are two options, depending upon how the RecoveryManager has been created.

Separate Recovery Manager

You can either use the com.arjuna.ats.arjuna.tools.RecoveryMonitor program to send a message to the Recovery Manager instructing it to perform recovery, or you can create an instance of the com.arjuna.ats.arjuna.recovery.RecoveryDriver class to do likewise. There are two types of recovery scan available:

(i)          ASYNC_SCAN: here a message is sent to the RecoveryManager to instruct it to perform recovery, but the response returns before recovery has completed.

(ii)         SYNC: here a message is sent to the RecoveryManager to instruct it to perform recovery, and the response occurs only when recovery has completed.

In process Recovery Manager

You can invoke the scan operation on the RecoveryManager. This operation returns only when recovery has completed. However, if you wish to have an asynchronous interaction pattern, then the RecoveryScan interface is provided:

public interface RecoveryScan

{

��� public void completed ();

}

An instance of an object supporting this interface can be passed to the scan operation and its completed method will be called when recovery finishes. The scan operation returns immediately, however.

As stated before each recovery module is used to recover a different type of transaction/resource, but each recovery module must implement the following RecoveryModule interface, which defines two methods: periodicWorkFirstPass and periodicWorkSecondPass invoked by the Recovery Manager.

public interface RecoveryModule

{

��� /**

���� * Called by the RecoveryManager at start up, and then

���� * PERIODIC_RECOVERY_PERIOD seconds after the completion, for all��
���� * RecoveryModules of the second pass

���� */

��� public void periodicWorkFirstPass ();

���

��� /**

���� * Called by the RecoveryManager RECOVERY_BACKOFF_PERIOD seconds

���� * after the completion of the first pass

���� */

��� public void periodicWorkSecondPass ();

}

JBossTS Recovery Module Classes

JBossTS provides a set of recovery modules that are responsible to manage recovery according to the nature of the participant and its position in a transactional tree. The provided classes (that all implements the RecoveryModule interface) are:

       com.arjuna.ats.internal.arjuna.recovery.AtomicActionRecoveryModule

Recovers AtomicAction transactions.

       com.arjuna.ats.internal.txoj.recovery.TORecoveryModule

Recovers Transactional Objects for Java.

       com.arjuna.ats.internal.jts.recovery.transactions.TransactionRecoveryModule

Recovers JTS Transactions. This is a generic class from which TopLevel and Server transaction recovery modules inherit, respectively

       com.arjuna.ats.internal.jts.recovery.transactions.TopLevelTransactionRecoveryModule

       com.arjuna.ats.internal.jts.recovery.transactions.ServerTransactionRecoveryModule

To illustrate the behavior of a recovery module, the following pseudo code describes the basic algorithm used for Atomic Action transactions and Transactional Objects for java.

AtomicAction pseudo code

First Pass:

< create a transaction vector for transaction Uids. >

< read in all transactions for a transaction type AtomicAction. >

while < there are transactions in the vector of transactions. >

do

�� < add the transaction to the vector of transactions. >

end while.

Second Pass:

while < there are transactions in the transaction vector >

do

�� if < the intention list for the transaction still exists >

�� then

����� < create new transaction cached item >

����� < obtain the status of the transaction >

����� if < the transaction is not in progress >

����� then

�������� < replay phase two of the commit protocol >

����� endif.

�� endif.

end while.

Transactional Object pseudo code

First Pass:

< Create a hash table for uncommitted transactional objects. >

< Read in all transactional objects within the object store. >

while < there are transactional objects >

do

�� if < the transactional object has an Uncommited status in the object store >

�� then

����� < add the transactional Object o the hash table for uncommitted transactional objects>

�� end if.

end while.

Second Pass:

while < there are transactions in the hash table for uncommitted transactional objects >

do

�� if < the transaction is still in the Uncommitted state >

�� then

����� if < the transaction is not in the Transaction Cache >

����� then

�������� < check the status of the transaction with the original application process >

�������� if < the status is Rolled Back or the application process is inactive >

����������� < rollback the transaction by removing the Uncommitted status from the Object Store >

�������� endif.

����� endif.

�� endif.

end while.

A Recovery Module for XA Resources

To manage recovery, we have seen in the previous chapter that the Recovery Manager triggers a recovery process by calling a set of recovery modules that implements the two methods defined by the RecoveryModule interface.

To enable recovery of participants controlled via the XA interface, a specific recovery module named XARecoveryModule is provided. The XARecoveryModule, defined in the packages com.arjuna.ats.internal.jta.recovery.arjunacore and com.arjuna.ats.internal.jta.recovery.jts, handles recovery of XA resources (databases etc.) used in JTA.

Note:               JBossTS supports two JTA implementations: a purely local version (no distributed transactions) and a version layered on the JTS. Recovery for the former is straightforward. In the following discussion we shall implicitly consider on the JTS implementation.

Its behavior consists of two aspects: �transaction-initiated� and �resource-initiated� recovery. Transaction-initiated recovery is possible where the particular transaction branch had progressed far enough for a JTA Resource Record to be written in the ObjectStore, as illustrated in Figure 2.

 

 

 

 

 


Figure 2 � JTA/JDBC information stored in the ObjectStore

A JTA Resource record contains the information needed to link the transaction, as known to the rest of JBossTS, to the database. Resource-initiated recovery is necessary for branches where a failure occurred after the database had made a persistent record of the transaction, but before the JTA ResourceRecord was persisted.� Resource-initiated recovery is also necessary for datasources for which it is not possible to hold information in the JTA Resource record that allows the recreation in the RecoveryManager of the XAConnection/XAResource that was used in the original application.

Note:               When running XA recovery it is necessary to tell JBossTS which types of Xid it can recover. Each Xid that JBossTS creates has a unique node identifier encoded within it and JBossTS will only recover transactions and states that match a specified node identifier. The node identifier to use should be provided to JBossTS via a property that starts with the name com.arjuna.ats.jta.xaRecoveryNode; multiple values may be provided. A value of �*� will force JBossTS to recover (and possibly rollback) all transactions irrespective of their node identifier and should be used with caution.

Transaction-initiated recovery is automatic. The XARecoveryModule finds the JTA Resource Record that need recovery, then uses the normal recovery mechanisms to find the status of the transaction it was involved in (i.e., it calls replay_completion on the RecoveryCoordinator for the transaction branch), (re)creates the appropriate XAResource and issues commit or rollback on it as appropriate. The XAResource creation will use the same information, database name, username, password etc., as the original application.

 

 

 

 

 

 

 


Figure 3 - Transaction-Initiated Recovery and XA Recovery

Resource-initiated recovery has to be specifically configured, by supplying the Recovery Manager with the appropriate information for it to interrogate all the databases (XADataSources) that have been accessed by any JBossTS application. The access to each XADataSource is handled by a class that implements the com.arjuna.ats.jta.recovery.XAResourceRecovery interface, as illustrated in Figure 4. Instances of classes that implements the XAResourceRecovery interface are dynamically loaded, as controlled by properties with names beginning �com.arjuna.ats.jta.recovery.XAResourceRecovery�.

Figure 4 � Resource-initiated recovery and XA Recovery

Note:               In JBossTS 3.3 XAConnectionRecovery was deprecated in favor of XAResourceRecovery. Although the old interface still exists at the moment, users are encouraged to migrate to the new interface.

The XARecoveryModule will use the XAResourceRecovery implementation to get a XAResource to the target datasource. On each invocation of periodicWorkSecondPass, the recovery module will issue an XAResource.recover request � this will (as described in the XA specification) return a list of the transaction identifiers (Xid�s) that are known to the datasource and are in an indeterminate (in-doubt) state. The list of these in-doubt Xid�s received on successive passes (i.e. periodicWorkSecondPass-es) is compared. Any Xid that appears in both lists, and for which no JTA ResourceRecord was found by the intervening transaction-initiated recovery is assumed to belong to a transaction that was involved in a crash before any JTA ResourceRecord was written, and a rollback is issued for that transaction on the XAResource.

This double-scan mechanism is used because it is possible the Xid was obtained from the datasource just as the original application process was about to create the corresponding JTA_ResourceRecord. The interval between the scans should allow time for the record to be written unless the application crashes (and if it does, rollback is the right answer).

An XAResourceRecovery implementation class can be written to contain all the information needed to perform recovery to some datasource. Alternatively, a single class can handle multiple datasources. The constructor of the implementation class must have an empty parameter list (because it is loaded dynamically), but the interface includes an initialise method which passes in further information as a string. The content of the string is taken from the property value that provides the class name: everything after the first semi-colon is passed as the value of the string. The use made of this string is determined by the XAResourceRecovery implementation class.

For further details on the way to implement a class that implements the interface XAResourceRecovery, read the JDBC chapter of the JTA Programming Guide. An implementation class is provided that supports resource-initiated recovery for any XADataSource. This class could be used as a template to build your own implementation class.

Writing a Recovery Module

In order to recover from failure, we have seen that the Recovery Manager contacts recovery modules by invoking periodically the methods periodicWorkFirstPass and periodicWorkSecondPass. Each Recovery Module is then able to manage recovery according the type of resources that need to be recovered. The Arjuna Transaction product is shipped with a set of recovery modules (TOReceveryModule, XARecoveryModule�), but it is possible for a user to define its own recovery module that fit his application. The following basic example illustrates the steps needed to build such recovery module

A basic scenario

This basic example does not aim to present a complete process to recover from failure, but mainly to illustrate the way to implement a recovery module.

The application used here consists to create an atomic transaction, to register a participant within the created transaction and finally to terminate it either by commit or abort. A set of arguments are provided:

  to decide to commit or abort the transaction,

  to decide generating a crash during the commitment process.

The code of the main class that control the application is given below

package com.arjuna.demo.recoverymodule;

 

import com.arjuna.ats.arjuna.AtomicAction;

import com.arjuna.ats.arjuna.coordinator.*;

 

public class TestRecoveryModule

{

��� public static void main(String args[])

��� {

� �� try

���� {

� ���� AtomicAction tx = new AtomicAction();

� ���� tx.begin(); // Top level begin

� ���

� ���� // enlist the participant

� ���� tx.add(SimpleRecord.create());

� ���

� ���� System.out.println("About to complete the transaction ");

� ���� for (int i = 0; i < args.length; i++)

� ���� {

���� ��� if ((args[i].compareTo("-commit") == 0))

���� ���� _commit = true;

���� ��� if ((args[i].compareTo("-rollback") == 0))

���� ���� _commit = false;

���� ��� if ((args[i].compareTo("-crash") == 0))

���� ���� _crash = true;

� ���� }

� ���� if (_commit)

���� ��� tx.commit();� // Top level commit

� ���� else

���� ��� tx.abort();� // Top level rollback

� ��� } catch(Exception e) {

� ��� e.printStackTrace();

� � }

������������� }

������������� protected static boolean _commit = true;

������������� protected static boolean _crash = false;

}

The registered participant has the following behavior:

  During the prepare phase, it writes a simple message - �I�m prepared�- on the disk such The message is written in a well known file

  During the commit phase, it writes another message - �I�m committed�- in the same file used during prepare

  If it receives an abort message, it removes from the disk the file used for prepare if any.

  If a crash has been decided for the test, then it crashes during the commit phase � the file remains with the message �I�m prepared�.

The main portion of the code illustrating such behavior is described hereafter.

Note:               that the location of the file given in variable filename can be changed

package com.arjuna.demo.recoverymodule;

 

import com.arjuna.ats.arjuna.coordinator.*;

import java.io.File;

 

public class SimpleRecord extends AbstractRecord {

��� public String filename = "c:/tmp/RecordState";

��� public SimpleRecord() {

� �� System.out.println("Creating new resource");

��� }

���

��� public static AbstractRecord create()

��� {

� ��� return new SimpleRecord() ;

��� }

 

��� public int topLevelAbort()

��� {

� �� try {

���� �� File fd = new File(filename);

���� �� if (fd.exists()){

�������� if (fd.delete())

������ ��� System.out.println("File Deleted");

���� ��� }

� �� }

� �� catch(Exception ex){�}

��� �return TwoPhaseOutcome.FINISH_OK;

��� }

���

��� public int topLevelCommit()

��� {

� ��� if (TestRecoveryModule._crash)

� ����� System.exit(0);

����� try� {

���� ��� java.io.FileOutputStream file = new���

��������������� java.io.FileOutputStream(filename);

���� ��� java.io.PrintStream pfile = new java.io.PrintStream(file);

���� ��� pfile.println("I'm Committed");

���� ��� file.close();

� ��� }

� ��� catch (java.io.IOException ex) {...}

� ��� return TwoPhaseOutcome.FINISH_OK ;

��� }

���

��� public int topLevelPrepare()

��� {

� ��� try {

���� ��� java.io.FileOutputStream file = new

������������ java.io.FileOutputStream(filename);

���� ��� java.io.PrintStream pfile = new java.io.PrintStream(file);

���� ��� pfile.println("I'm prepared");

���� ��� file.close();

� ��� }

� ��� catch (java.io.IOException ex)� {...}

� ��� return� TwoPhaseOutcome.PREPARE_OK ;

��� }

��� �

}

The role of the Recovery Module in such application consists to read the content of the file used to store the status of the participant, to determine that status and print a message indicating if a recovery action is needed or not.

package com.arjuna.demo.recoverymodule;

 

import com.arjuna.ats.arjuna.recovery.RecoveryModule;

 

public class SimpleRecoveryModule implements RecoveryModule

{

��� public String filename = "c:/tmp/RecordState";

��� public SimpleRecoveryModule ()

��� {

� �� System.out.println("The SimpleRecoveryModule is loaded");

��� };

 

��� public void periodicWorkFirstPass ()

��� {

� � ��try

������ {

������� �java.io.FileInputStream file = new

�������������� java.io.FileInputStream(filename);

�������� java.io.InputStreamReader input = new

������������� java.io.InputStreamReader(file);

�������� java.io.BufferedReader reader = new java.io.BufferedReader(input);

������� �String stringState = reader.readLine();

���� ��� if (stringState.compareTo("I'm prepared") == 0)

���� ��� ��System.out.println("The transaction is in the prepared state");

���� ��� file.close();

� ���� }

������ catch (java.io.IOException ex)

������ { System.out.println("Nothing found on the Disk"); }

��� }

 

��� public void periodicWorkSecondPass ()

��� {

� ��� try

����� {

������� java.io.FileInputStream file = new

������������� java.io.FileInputStream(filename);

����� ��java.io.InputStreamReader input = new

������������� java.io.InputStreamReader(file);

������� java.io.BufferedReader reader = new java.io.BufferedReader(input);

������� String stringState = reader.readLine();

������� if (stringState.compareTo("I'm prepared") == 0)

������� {

�������� System.out.println("The record is still in the prepared state �

��������������� Recovery is needed");

������� }

���� �� else if (stringState.compareTo("I'm Committed") == 0)

������� {

�������� System.out.println("The transaction has completed and committed");��� �

������� }

������� file.close();

����� }

����� catch (java.io.IOException ex)

����� { System.out.println("Nothing found on the Disk - Either there was

������� no transaction or it as been rolled back"); }

�� �}

}

 

The recovery module should now be deployed in order to be called by the Recovery Manager. To do so, we just need to add an entry in the RecoveryManager-properties.xml by adding a new property as follow:

����� <property

������� name="com.arjuna.ats.arjuna.recovery.recoveryExtension<i>"

������� value="com.arjuna.demo.recoverymodule.SimpleRecoveryModule"/>

Where <i> represent the new occurrence number that follows the last that already exists in the file. Once started, the Recovery Manager will automatically load the added Recovery module.

Note:               The source of the code can be retrieved under the trailmap directory of the JBossTS installation.

Another scenario

As mentioned, the basic application presented above does not present the complete process to recover from failure, but it was just presented to describe how the build a recovery module. In case of the OTS protocol, let�s consider how a recovery module that manages recovery of OTS resources can be configured.

To manage recovery in case of failure, the OTS specification has defined a recovery protocol. Transaction�s participants in a doubt status could use the RecoveryCoordinator to determine the status of the transaction. According to that transaction status, those participants can take appropriate decision either by roll backing or committing. Asking the RecoveryCoordinator object to determine the status consists to invoke the replay_completion operation on the RecoveryCoordinator.

For each OTS Resource in a doubt status, it is well known which RecoveyCoordinator to invoke to determine the status of the transaction in which the Resource is involved � It�s the RecoveryCoordinator returned during the Resource registration process. Retrieving such RecoveryCoordinator per resource means that it has been stored in addition to other information describing the resource.

A recovery module dedicated to recover OTS Resources could have the following behavior. When requested by the recovery Manager on the first pass it retrieves from the disk the list of resources that are in the doubt status. During the second pass, if the resources that were retrieved in the first pass still remain in the disk then they are considered as candidates for recovery. Therefore, the Recovery Module retrieves for each candidate its associated RecoveryCoordinator and invokes the replay_completion operation that the status of the transaction. According to the returned status, an appropriate action would be taken (for instance, rollback the resource is the status is aborted or inactive).

The TransactionStatusConnectionManager object is used by the recovery modules to retrieve the status of transactions and acts like a proxy for TransactionStatusManager objects. It maintains a table of TransactionStatusConnector obects each of which connects to a TransactionStatusManager object in an Application Process.

The transactions status is retrieved using the getTransactionStatus methods which take a transaction Uid and if available a transaction type as parameters. The process Uid field in the transactions Uid parameter is used to lookup the target TransactionStatusManagerItem host/port pair in the Object Store. The host/port pair are used to make a TCP connection to the target TransactionStatusManager object by a TransactionStatusConnector object. The TransactionStatusConnector passes the transaction Uid/transaction type to the TransactionStatusManager in order to retrieve the transactions status.

When the Recovery Manager initialises an expiry scanner thread ExpiryEntryMonitor is created which is used to remove long dead items from the ObjectStore.