in hbase-oss/src/main/java/org/apache/hadoop/hbase/oss/sync/ZKTreeLockManager.java [159:170]
protected void writeUnlock(Path p) throws IOException {
try {
LOG.debug("writeLock {} release", p);
get(p).writeLock().release();
} catch(IllegalMonitorStateException e) {
// Reentrant locks might be acquired multiple times
LOG.error("Tried to release unacquired write lock: {}", p, e);
throw e;
} catch (Exception e) {
throw new IOException("Exception during write unlocking of path " + p, e);
}
}