private RowLock getRowLock(byte[] row, boolean readLock, final RowLock prevRowLock)
    throws IOException {
    return TraceUtil.trace(() -> getRowLockInternal(row, readLock, prevRowLock),
      () -> createRegionSpan("Region.getRowLock").setAttribute(ROW_LOCK_READ_LOCK_KEY, readLock));
  }
Get an exclusive ( write lock ) lock on a given row.
@param row Which row to lock.
@return A locked RowLock. The lock is exclusive and already aqquired.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java