hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabor Liptak (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-14179) catch the same Exception twice
Date Mon, 03 Aug 2015 23:45:04 GMT

    [ https://issues.apache.org/jira/browse/HBASE-14179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14652797#comment-14652797
] 

Gabor Liptak commented on HBASE-14179:
--------------------------------------

The outer catch is for:

ZKUtil.getData(this.watcher, nodePath);

also throwing InterruptedException

Both catch-es are needed.

> catch the same Exception twice
> ------------------------------
>
>                 Key: HBASE-14179
>                 URL: https://issues.apache.org/jira/browse/HBASE-14179
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 1.0.1, 1.1.0, 1.1.1, 1.1.0.1
>            Reporter: songwanging
>            Priority: Minor
>
> In method "markRegionsRecovering()" of class: hbase-1.1.1\hbase-server\src\main\java\org\apache\hadoop\hbase\coordination\ZKSplitLogManagerCoordination.java
> "InterruptedException" is catched twice.
>   public void markRegionsRecovering(final ServerName serverName, Set<HRegionInfo>
userRegions)
>       throws IOException, InterruptedIOException {
> ...
>    try {
>             Thread.sleep(20);
>           } catch (InterruptedException e1) {
>             throw new InterruptedIOException();
>           }
>         } catch (InterruptedException e) {
>           throw new InterruptedIOException();
>         }
> ...
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message