apurtell commented on a change in pull request #2574:
URL: https://github.com/apache/hbase/pull/2574#discussion_r514400950
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
##########
@@ -9000,6 +9173,51 @@ public long getReadPoint() {
return getReadPoint(IsolationLevel.READ_COMMITTED);
}
+ /**
+ * Interrupt any region options that have acquired the region lock via
+ * {@link
#startRegionOperation(org.apache.hadoop.hbase.regionserver.Region.Operation)},
+ * or {@link #startBulkRegionOperation(boolean)}.
+ */
+ private void interruptRegionOperations() {
+ for (Map.Entry<Thread, Boolean> entry: regionLockHolders.entrySet()) {
+ // An entry in this map will have a boolean value indicating if it is
currently
+ // eligible for interrupt; if so, we should interrupt it.
+ if (entry.getValue().booleanValue()) {
Review comment:
The generated code will be the same. I opted for this to be pedantic in
the code. It should be fine, right?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]