[jboss-cvs] JBossAS SVN: r80102 - branches/JBPAPP_4_2_0_GA_CP04_JBPAPP-1180_JBPAPP-1268/cluster/src/main/org/jboss/ha/framework/interfaces.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Oct 27 07:47:35 EDT 2008
Author: galder.zamarreno at jboss.com
Date: 2008-10-27 07:47:35 -0400 (Mon, 27 Oct 2008)
New Revision: 80102
Modified:
branches/JBPAPP_4_2_0_GA_CP04_JBPAPP-1180_JBPAPP-1268/cluster/src/main/org/jboss/ha/framework/interfaces/TransactionSticky.java
Log:
[JBPAPP-1268] Check that sticky target is still valid for failover scenarios such as when UT.begin() fails because the node is not accessible.
Modified: branches/JBPAPP_4_2_0_GA_CP04_JBPAPP-1180_JBPAPP-1268/cluster/src/main/org/jboss/ha/framework/interfaces/TransactionSticky.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP04_JBPAPP-1180_JBPAPP-1268/cluster/src/main/org/jboss/ha/framework/interfaces/TransactionSticky.java 2008-10-27 11:22:46 UTC (rev 80101)
+++ branches/JBPAPP_4_2_0_GA_CP04_JBPAPP-1180_JBPAPP-1268/cluster/src/main/org/jboss/ha/framework/interfaces/TransactionSticky.java 2008-10-27 11:47:35 UTC (rev 80102)
@@ -66,7 +66,7 @@
{
trace = log.isTraceEnabled();
Object txStickyTarget = routingDecision.getTransientValue("TX_STICKY_TARGET");
- if (txStickyTarget != null)
+ if (txStickyTarget != null && clusterFamily.getTargets().contains(txStickyTarget))
{
if (trace)
{
More information about the jboss-cvs-commits
mailing list