mnpoonia commented on code in PR #6789:
URL: https://github.com/apache/hbase/pull/6789#discussion_r2026609781
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java:
##########
@@ -8458,16 +8452,24 @@ public void startRegionOperation(Operation op) throws
IOException {
coprocessorHost.postStartRegionOperation(op);
}
} catch (Exception e) {
- if (isInterruptableOp) {
- // would be harmless to remove what we didn't add but we know by
'isInterruptableOp'
- // if we added this thread to regionLockHolders
- regionLockHolders.remove(thisThread);
- }
+ lockHolders.remove(thisThread);
lock.readLock().unlock();
throw new IOException(e);
}
}
+ private static boolean shouldLock(Operation op) {
Review Comment:
This is for better readability. Nothing else changed here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]