Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
HBASE-7376 Acquiring readLock does not apply timeout in HRegion#flush…
…cache (binlijin)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1423551 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jxiang committed Dec 18, 2012
1 parent 36db216 commit 9c50f01
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -1403,7 +1403,8 @@ public boolean flushcache() throws IOException {
}
MonitoredTask status = TaskMonitor.get().createStatus("Flushing " + this);
status.setStatus("Acquiring readlock on region");
lock(lock.readLock());
// block waiting for the lock for flushing cache
lock.readLock().lock();
try {
if (this.closed.get()) {
LOG.debug("Skipping flush on " + this + " because closed");
Expand Down

0 comments on commit 9c50f01

Please sign in to comment.