HBASE-15030 Deadlock in master TableNamespaceManager while running IntegrationTestDDLMasterFailover

This commit is contained in:
Matteo Bertozzi 2015-12-23 09:46:18 -08:00
parent e00a04df10
commit 8e0854c64b
1 changed files with 4 additions and 4 deletions

View File

@ -133,7 +133,7 @@ public class TableNamespaceManager {
return nsTable;
}
private synchronized boolean acquireSharedLock() throws IOException {
private boolean acquireSharedLock() throws IOException {
try {
return rwLock.readLock().tryLock(sharedLockTimeoutMs, TimeUnit.MILLISECONDS);
} catch (InterruptedException e) {
@ -141,11 +141,11 @@ public class TableNamespaceManager {
}
}
public synchronized void releaseSharedLock() {
public void releaseSharedLock() {
rwLock.readLock().unlock();
}
public synchronized boolean acquireExclusiveLock() {
public boolean acquireExclusiveLock() {
try {
return rwLock.writeLock().tryLock(exclusiveLockTimeoutMs, TimeUnit.MILLISECONDS);
} catch (InterruptedException e) {
@ -153,7 +153,7 @@ public class TableNamespaceManager {
}
}
public synchronized void releaseExclusiveLock() {
public void releaseExclusiveLock() {
rwLock.writeLock().unlock();
}