geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bschucha...@apache.org
Subject [3/3] incubator-geode git commit: GEODE-77 added an additional catch/retry of NoAvailableLocatorsException
Date Fri, 04 Sep 2015 21:13:25 GMT
GEODE-77 added an additional catch/retry of NoAvailableLocatorsException


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/7956d065
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/7956d065
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/7956d065

Branch: refs/heads/feature/GEODE-77
Commit: 7956d06524fcba1f5dd329dd4ae13faa7b024d2a
Parents: e21dc11
Author: Bruce Schuchardt <bschuchardt@pivotal.io>
Authored: Fri Sep 4 14:13:06 2015 -0700
Committer: Bruce Schuchardt <bschuchardt@pivotal.io>
Committed: Fri Sep 4 14:13:06 2015 -0700

----------------------------------------------------------------------
 .../cache/client/internal/AutoConnectionSourceDUnitTest.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/7956d065/gemfire-core/src/test/java/com/gemstone/gemfire/cache/client/internal/AutoConnectionSourceDUnitTest.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/test/java/com/gemstone/gemfire/cache/client/internal/AutoConnectionSourceDUnitTest.java
b/gemfire-core/src/test/java/com/gemstone/gemfire/cache/client/internal/AutoConnectionSourceDUnitTest.java
index 1fdb67c..d600472 100644
--- a/gemfire-core/src/test/java/com/gemstone/gemfire/cache/client/internal/AutoConnectionSourceDUnitTest.java
+++ b/gemfire-core/src/test/java/com/gemstone/gemfire/cache/client/internal/AutoConnectionSourceDUnitTest.java
@@ -384,8 +384,9 @@ public class AutoConnectionSourceDUnitTest extends LocatorTestBase {
         System.err.println("Attempt: " + (i++));
         putInVM(vm, regionName, key, value);
         break;
-      } catch(dunit.RMIException e) {
-        if(!(e.getCause() instanceof NoAvailableServersException)) {
+      } catch (NoAvailableServersException | dunit.RMIException e) {
+        if( !(e instanceof NoAvailableServersException)
+            && !(e.getCause() instanceof NoAvailableServersException)) {
           throw e;
         }
         if(remaining <= 0) {


Mime
View raw message