[ https://issues.apache.org/jira/browse/HBASE-4716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13141423#comment-13141423 ]
Todd Lipcon commented on HBASE-4716: ------------------------------------ {code} + if (writeLockNeeded) lock.writeLock().lock(); + else lock.readLock().lock(); if (this.closed.get()) { lock.writeLock().unlock(); {code} here it can take readLock then try to unlock writeLock > Improve locking for single column family bulk load > -------------------------------------------------- > > Key: HBASE-4716 > URL: https://issues.apache.org/jira/browse/HBASE-4716 > Project: HBase > Issue Type: Bug > Affects Versions: 0.92.0 > Reporter: Ted Yu > Assignee: Ted Yu > Fix For: 0.92.0 > > Attachments: 4716.txt > > > HBASE-4552 changed the locking behavior for single column family bulk load, > namely we don't need to take write lock. > A read lock would suffice. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira