You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "frostruan (via GitHub)" <gi...@apache.org> on 2023/05/23 17:55:38 UTC

[GitHub] [hbase] frostruan commented on a diff in pull request #5247: HBASE-27855 Support dynamic adjustment of flusher count

frostruan commented on code in PR #5247:
URL: https://github.com/apache/hbase/pull/5247#discussion_r1202787995


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java:
##########
@@ -495,41 +505,54 @@ public int getFlushQueueSize() {
    * Only interrupt once it's done with a run through the work loop.
    */
   void interruptIfNecessary() {
-    lock.writeLock().lock();
+    lock.readLock().lock();

Review Comment:
   Thanks for reviewing Duo. 
   
   After digging and reconsideration, I think we should keep the writeLock here. Sorry for the mistake.



-- 
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: issues-unsubscribe@hbase.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org