hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mberto...@apache.org
Subject [2/2] hbase git commit: HBASE-15030 Deadlock in master TableNamespaceManager while running IntegrationTestDDLMasterFailover
Date Wed, 23 Dec 2015 17:59:04 GMT
HBASE-15030 Deadlock in master TableNamespaceManager while running IntegrationTestDDLMasterFailover


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/d65210d2
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/d65210d2
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/d65210d2

Branch: refs/heads/branch-1
Commit: d65210d2138a59b91aef6443b6b26435a27a587a
Parents: 59cca62
Author: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
Authored: Wed Dec 23 09:46:18 2015 -0800
Committer: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
Committed: Wed Dec 23 09:56:21 2015 -0800

----------------------------------------------------------------------
 .../apache/hadoop/hbase/master/TableNamespaceManager.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/d65210d2/hbase-server/src/main/java/org/apache/hadoop/hbase/master/TableNamespaceManager.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/TableNamespaceManager.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/TableNamespaceManager.java
index f4be427..a4746c8 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/TableNamespaceManager.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/TableNamespaceManager.java
@@ -134,7 +134,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) {
@@ -142,11 +142,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) {
@@ -154,7 +154,7 @@ public class TableNamespaceManager {
     }
   }
 
-  public synchronized void releaseExclusiveLock() {
+  public void releaseExclusiveLock() {
     rwLock.writeLock().unlock();
   }
 


Mime
View raw message