You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2018/12/21 16:55:00 UTC

[GitHub] milleruntime commented on a change in pull request #853: Remove unnecessary exceptions in core module

milleruntime commented on a change in pull request #853: Remove unnecessary exceptions in core module
URL: https://github.com/apache/accumulo/pull/853#discussion_r243636331
 
 

 ##########
 File path: core/src/main/java/org/apache/accumulo/core/clientImpl/ZookeeperLockChecker.java
 ##########
 @@ -34,11 +33,7 @@
 
   @Override
   public boolean isLockHeld(String tserver, String session) {
-    try {
-      return ZooLock.getSessionId(zc, root + "/" + tserver) == Long.parseLong(session, 16);
-    } catch (KeeperException | InterruptedException e) {
-      throw new RuntimeException(e);
-    }
+    return ZooLock.getSessionId(zc, root + "/" + tserver) == Long.parseLong(session, 16);
 
 Review comment:
   Sweet!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services