You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ud...@apache.org on 2016/10/05 20:44:43 UTC

[3/3] incubator-geode git commit: GEODE-1938: Break early when ServerException is caught

GEODE-1938: Break early when ServerException is caught


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

Branch: refs/heads/develop
Commit: 61fe7c647682c10b2dcec4620448696bf5499880
Parents: f91792c
Author: Udo Kohlmeyer <uk...@pivotal.io>
Authored: Thu Oct 6 07:43:31 2016 +1100
Committer: Udo Kohlmeyer <uk...@pivotal.io>
Committed: Thu Oct 6 07:43:31 2016 +1100

----------------------------------------------------------------------
 .../org/apache/geode/pdx/internal/ClientTypeRegistration.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/61fe7c64/geode-core/src/main/java/org/apache/geode/pdx/internal/ClientTypeRegistration.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/pdx/internal/ClientTypeRegistration.java b/geode-core/src/main/java/org/apache/geode/pdx/internal/ClientTypeRegistration.java
index 09a0a18..b4b98f5 100644
--- a/geode-core/src/main/java/org/apache/geode/pdx/internal/ClientTypeRegistration.java
+++ b/geode-core/src/main/java/org/apache/geode/pdx/internal/ClientTypeRegistration.java
@@ -265,8 +265,8 @@ public class ClientTypeRegistration implements TypeRegistration {
       try {
         sendTypeToPool(importedType, typeId, pool);
       } catch (ServerConnectivityException e) {
-        //ignore, try the next pool.
         lastException = e;
+        break;
       }
     }
     if (lastException == null) {
@@ -284,8 +284,8 @@ public class ClientTypeRegistration implements TypeRegistration {
       try {
         sendEnumIdToPool(importedInfo, enumId, pool);
       } catch (ServerConnectivityException e) {
-        //ignore, try the next pool.
         lastException = e;
+        break;
       }
     }
     if (lastException == null) {