geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject [3/3] incubator-geode git commit: GEODE-1938: Break early when ServerException is caught
Date Wed, 05 Oct 2016 20:44:43 GMT
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 <ukohlmeyer@pivotal.io>
Authored: Thu Oct 6 07:43:31 2016 +1100
Committer: Udo Kohlmeyer <ukohlmeyer@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) {


Mime
View raw message