Author: ritchiem
Date: Fri Mar 14 10:31:44 2008
New Revision: 637170

URL: http://svn.apache.org/viewvc?rev=637170&view=rev
Log:
QPID-855 : Added check for the IllegalStateException and ignore ones from the 
Noop Operation.

Modified:
    
incubator/qpid/branches/M2.1/java/client/src/main/java/org/apache/qpid/client/failover/FailoverRetrySupport.java

Modified: 
incubator/qpid/branches/M2.1/java/client/src/main/java/org/apache/qpid/client/failover/FailoverRetrySupport.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/branches/M2.1/java/client/src/main/java/org/apache/qpid/client/failover/FailoverRetrySupport.java?rev=637170&r1=637169&r2=637170&view=diff
==============================================================================
--- 
incubator/qpid/branches/M2.1/java/client/src/main/java/org/apache/qpid/client/failover/FailoverRetrySupport.java
 (original)
+++ 
incubator/qpid/branches/M2.1/java/client/src/main/java/org/apache/qpid/client/failover/FailoverRetrySupport.java
 Fri Mar 14 10:31:44 2008
@@ -122,6 +122,13 @@
                 {
                     _log.debug("Failover exception caught during operation: " 
+ e, e);
                 }
+                catch (IllegalStateException e)
+                {
+                    if (!(e.getMessage().startsWith("Fail-over interupted 
no-op failover support")))
+                    {
+                        throw e;
+                    }
+                }
             }
         }
     }


Reply via email to