hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1538318 - /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java
Date Sun, 03 Nov 2013 05:18:10 GMT
Author: stack
Date: Sun Nov  3 05:18:10 2013
New Revision: 1538318

URL: http://svn.apache.org/r1538318
Log:
HBASE-8942 DFS errors during a read operation (get/scan), may cause write outliers

Modified:
    hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java

Modified: hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java?rev=1538318&r1=1538317&r2=1538318&view=diff
==============================================================================
--- hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java
(original)
+++ hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java
Sun Nov  3 05:18:10 2013
@@ -1632,19 +1632,14 @@ public class HStore implements Store {
   @Override
   public KeyValueScanner getScanner(Scan scan,
       final NavigableSet<byte []> targetCols) throws IOException {
-    lock.readLock().lock();
-    try {
-      KeyValueScanner scanner = null;
-      if (this.getCoprocessorHost() != null) {
-        scanner = this.getCoprocessorHost().preStoreScannerOpen(this, scan, targetCols);
-      }
-      if (scanner == null) {
-        scanner = new StoreScanner(this, getScanInfo(), scan, targetCols);
-      }
-      return scanner;
-    } finally {
-      lock.readLock().unlock();
+    KeyValueScanner scanner = null;
+    if (this.getCoprocessorHost() != null) {
+      scanner = this.getCoprocessorHost().preStoreScannerOpen(this, scan, targetCols);
+    }
+    if (scanner == null) {
+      scanner = new StoreScanner(this, getScanInfo(), scan, targetCols);
     }
+    return scanner;
   }
 
   @Override



Mime
View raw message