Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-2317

NSRE in lockRow is thrown as an ERROR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 0.20.3
    • None
    • regionserver

    Description

      HRS.lockRow doesn't manage exceptions like all the other methods:

          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 + ")"));
          }
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jdcryans Jean-Daniel Cryans
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: