[jboss-svn-commits] JBL Code SVN: r31190 - labs/jbosstm/trunk/ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/recovery/arjunacore.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Jan 22 07:30:26 EST 2010
Author: mark.little at jboss.com
Date: 2010-01-22 07:30:26 -0500 (Fri, 22 Jan 2010)
New Revision: 31190
Modified:
labs/jbosstm/trunk/ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/recovery/arjunacore/XARecoveryModule.java
Log:
Improved some debugging statements.
Modified: labs/jbosstm/trunk/ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/recovery/arjunacore/XARecoveryModule.java
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/recovery/arjunacore/XARecoveryModule.java 2010-01-22 11:40:11 UTC (rev 31189)
+++ labs/jbosstm/trunk/ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/recovery/arjunacore/XARecoveryModule.java 2010-01-22 12:30:26 UTC (rev 31190)
@@ -856,7 +856,7 @@
if (jtaLogger.loggerI18N.isDebugEnabled())
{
jtaLogger.logger.debug(DebugLevel.FUNCTIONS,
- VisibilityLevel.VIS_PUBLIC,
+ VisibilityLevel.VIS_PRIVATE,
FacilityCode.FAC_CRASH_RECOVERY,
"Checking node name of "
+ ((Xid) xids[j]));
@@ -869,7 +869,7 @@
if (jtaLogger.loggerI18N.isDebugEnabled())
{
jtaLogger.logger.debug(DebugLevel.FUNCTIONS,
- VisibilityLevel.VIS_PUBLIC,
+ VisibilityLevel.VIS_PRIVATE,
FacilityCode.FAC_CRASH_RECOVERY,
"Node name is " + nodeName);
}
@@ -888,9 +888,9 @@
{
jtaLogger.logger.debug(
DebugLevel.FUNCTIONS,
- VisibilityLevel.VIS_PUBLIC,
+ VisibilityLevel.VIS_PRIVATE,
FacilityCode.FAC_CRASH_RECOVERY,
- "Will recover this Xid (a)");
+ "Ignoring node name. Will recover "+(Xid) xids[j]);
}
doRecovery = true;
@@ -918,9 +918,9 @@
jtaLogger.logger
.debug(
DebugLevel.FUNCTIONS,
- VisibilityLevel.VIS_PUBLIC,
+ VisibilityLevel.VIS_PRIVATE,
FacilityCode.FAC_CRASH_RECOVERY,
- "Will recover this Xid (b)");
+ "Node name matches. Will recover "+(Xid) xids[j]);
}
doRecovery = true;
@@ -933,9 +933,9 @@
jtaLogger.logger
.debug(
DebugLevel.FUNCTIONS,
- VisibilityLevel.VIS_PUBLIC,
+ VisibilityLevel.VIS_PRIVATE,
FacilityCode.FAC_CRASH_RECOVERY,
- "Will not recover this Xid (a)");
+ "Node name does not match. Ignoring Xid.");
}
}
}
@@ -947,9 +947,9 @@
jtaLogger.logger
.debug(
DebugLevel.FUNCTIONS,
- VisibilityLevel.VIS_PUBLIC,
+ VisibilityLevel.VIS_PRIVATE,
FacilityCode.FAC_CRASH_RECOVERY,
- "Will not recover this Xid (b)");
+ "Node name not set. Ignoring Xid.");
}
}
}
@@ -960,7 +960,7 @@
jtaLogger.logger
.debug(
DebugLevel.FUNCTIONS,
- VisibilityLevel.VIS_PUBLIC,
+ VisibilityLevel.VIS_PRIVATE,
FacilityCode.FAC_CRASH_RECOVERY,
"Will not recover this Xid");
}
@@ -1194,18 +1194,54 @@
{
_transactionStore = TxControl.getStore();
}
-
+
XidImple theXid = new XidImple(xid);
Uid u = theXid.getTransactionUid();
+ if (jtaLogger.loggerI18N.isDebugEnabled())
+ {
+ jtaLogger.logger.debug(DebugLevel.FUNCTIONS,
+ VisibilityLevel.VIS_PRIVATE,
+ FacilityCode.FAC_CRASH_RECOVERY,
+ "Checking whether Xid "
+ + theXid + " exists in ObjectStore.");
+ }
+
if (!u.equals(Uid.nullUid()))
{
try
{
+
+ if (jtaLogger.loggerI18N.isDebugEnabled())
+ {
+ jtaLogger.logger.debug(DebugLevel.FUNCTIONS,
+ VisibilityLevel.VIS_PRIVATE,
+ FacilityCode.FAC_CRASH_RECOVERY,
+ "Looking for "+u+" and "+_transactionType);
+ }
+
if (_transactionStore.currentState(u, _transactionType) != StateStatus.OS_UNKNOWN)
{
+ if (jtaLogger.loggerI18N.isDebugEnabled())
+ {
+ jtaLogger.logger.debug(DebugLevel.FUNCTIONS,
+ VisibilityLevel.VIS_PRIVATE,
+ FacilityCode.FAC_CRASH_RECOVERY,
+ "Found record for "+theXid);
+ }
+
return true;
}
+ else
+ {
+ if (jtaLogger.loggerI18N.isDebugEnabled())
+ {
+ jtaLogger.logger.debug(DebugLevel.FUNCTIONS,
+ VisibilityLevel.VIS_PRIVATE,
+ FacilityCode.FAC_CRASH_RECOVERY,
+ "No record found for "+theXid);
+ }
+ }
}
catch (Exception ex)
{
More information about the jboss-svn-commits
mailing list