hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject svn commit: r1538484 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java
Date Mon, 04 Nov 2013 01:27:03 GMT
Author: larsh
Date: Mon Nov  4 01:27:02 2013
New Revision: 1538484

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

Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java?rev=1538484&r1=1538483&r2=1538484&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java (original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java Mon
Nov  4 01:27:02 2013
@@ -2200,20 +2200,15 @@ public class Store extends SchemaConfigu
    * @throws IOException
    */
   public KeyValueScanner getScanner(Scan scan,
-      final NavigableSet<byte []> targetCols) throws IOException {
-    lock.readLock().lock();
-    try {
-      KeyValueScanner scanner = null;
-      if (getHRegion().getCoprocessorHost() != null) {
-        scanner = getHRegion().getCoprocessorHost().preStoreScannerOpen(this, scan, targetCols);
-      }
-      if (scanner == null) {
-        scanner = new StoreScanner(this, getScanInfo(), scan, targetCols);
-      }
-      return scanner;
-    } finally {
-      lock.readLock().unlock();
+    final NavigableSet<byte []> targetCols) throws IOException {
+    KeyValueScanner scanner = null;
+    if (getHRegion().getCoprocessorHost() != null) {
+      scanner = getHRegion().getCoprocessorHost().preStoreScannerOpen(this, scan, targetCols);
+    }
+    if (scanner == null) {
+      scanner = new StoreScanner(this, getScanInfo(), scan, targetCols);
     }
+    return scanner;
   }
 
   @Override



Mime
View raw message