accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [2/4] accumulo git commit: ACCUMULO-3448 Break out to avoid the default case.
Date Tue, 23 Dec 2014 00:30:54 GMT
ACCUMULO-3448 Break out to avoid the default case.

Cherry-pick of 148e293acce79dcf02fe4bf13a221bf5881dd326 because I forgot
that it needed to be made in 1.6, and not just master.


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/92551204
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/92551204
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/92551204

Branch: refs/heads/master
Commit: 92551204eb040ff54b394a49eda1ad60712e516b
Parents: 62868b8
Author: Josh Elser <elserj@apache.org>
Authored: Mon Dec 22 19:10:54 2014 -0500
Committer: Josh Elser <elserj@apache.org>
Committed: Mon Dec 22 19:25:04 2014 -0500

----------------------------------------------------------------------
 fate/src/main/java/org/apache/accumulo/fate/zookeeper/ZooUtil.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/92551204/fate/src/main/java/org/apache/accumulo/fate/zookeeper/ZooUtil.java
----------------------------------------------------------------------
diff --git a/fate/src/main/java/org/apache/accumulo/fate/zookeeper/ZooUtil.java b/fate/src/main/java/org/apache/accumulo/fate/zookeeper/ZooUtil.java
index 814c042..805bfff 100644
--- a/fate/src/main/java/org/apache/accumulo/fate/zookeeper/ZooUtil.java
+++ b/fate/src/main/java/org/apache/accumulo/fate/zookeeper/ZooUtil.java
@@ -304,6 +304,7 @@ public class ZooUtil {
                   continue;
                 } else if (code2 == Code.CONNECTIONLOSS || code2 == Code.OPERATIONTIMEOUT
|| code2 == Code.SESSIONEXPIRED) {
                   retryOrThrow(retry, e2);
+                  break;
                 } else {
                   // unhandled exception on setData()
                   throw e2;


Mime
View raw message