You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org> on 2013/05/08 00:47:16 UTC

[jira] [Resolved] (HBASE-2317) NSRE in lockRow is thrown as an ERROR

     [ https://issues.apache.org/jira/browse/HBASE-2317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Daniel Cryans resolved HBASE-2317.
---------------------------------------

    Resolution: Invalid

We stopped doing row locks.
                
> NSRE in lockRow is thrown as an ERROR
> -------------------------------------
>
>                 Key: HBASE-2317
>                 URL: https://issues.apache.org/jira/browse/HBASE-2317
>             Project: HBase
>          Issue Type: Bug
>          Components: regionserver
>    Affects Versions: 0.20.3
>            Reporter: Jean-Daniel Cryans
>            Priority: Minor
>              Labels: moved_from_0_20_5
>
> HRS.lockRow doesn't manage exceptions like all the other methods: 
> {code}
>     try {
>       HRegion region = getRegion(regionName);
>       Integer r = region.obtainRowLock(row);
>       long lockId = addRowLock(r,region);
>       LOG.debug("Row lock " + lockId + " explicitly acquired by client");
>       return lockId;
>     } catch (Throwable t) {
>       throw convertThrowableToIOE(cleanup(t,
>         "Error obtaining row lock (fsOk: " + this.fsOk + ")"));
>     }
> {code}
> Also it throws a special message and shows if fs is ok, although it already calls checkOpen() at the beginning of that method.
> Fix by making it behaving like all the other calls.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira