You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by bs...@apache.org on 2015/09/04 23:13:25 UTC

[3/3] incubator-geode git commit: GEODE-77 added an additional catch/retry of NoAvailableLocatorsException

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 <bs...@pivotal.io>
Authored: Fri Sep 4 14:13:06 2015 -0700
Committer: Bruce Schuchardt <bs...@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) {