hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r1373976 - in /hbase/branches/0.92: CHANGES.txt src/main/java/org/apache/hadoop/hbase/client/HTable.java
Date Thu, 16 Aug 2012 18:47:43 GMT
Author: apurtell
Date: Thu Aug 16 18:47:43 2012
New Revision: 1373976

URL: http://svn.apache.org/viewvc?rev=1373976&view=rev
Log:
HBASE-6565. Coprocessor exec result Map is not thread safe (Yuan Kang)

Modified:
    hbase/branches/0.92/CHANGES.txt
    hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/client/HTable.java

Modified: hbase/branches/0.92/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/CHANGES.txt?rev=1373976&r1=1373975&r2=1373976&view=diff
==============================================================================
--- hbase/branches/0.92/CHANGES.txt (original)
+++ hbase/branches/0.92/CHANGES.txt Thu Aug 16 18:47:43 2012
@@ -102,6 +102,7 @@ Release 0.92.2 - Unreleased
    HBASE-6507 [hbck] TestHBaseFsck ran into TableNotEnabledException
    HBASE-6552 TestAcidGuarantees system test should flush more aggresively (Gregory Chanan)
    HBASE-6512 Incorrect OfflineMetaRepair log class name (Liang Xie)
+   HBASE-6565 Coprocessor exec result Map is not thread safe (Yuan Kang)
 
   IMPROVEMENTS
    HBASE-5592  Make it easier to get a table from shell (Ben West)

Modified: hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/client/HTable.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/client/HTable.java?rev=1373976&r1=1373975&r2=1373976&view=diff
==============================================================================
--- hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/client/HTable.java (original)
+++ hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/client/HTable.java Thu Aug 16
18:47:43 2012
@@ -30,6 +30,7 @@ import java.util.Iterator;
 import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
+import java.util.Collections;
 import java.util.NavigableMap;
 import java.util.TreeMap;
 import java.util.concurrent.ExecutorService;
@@ -1546,8 +1547,8 @@ public class HTable implements HTableInt
       Batch.Call<T,R> callable)
       throws IOException, Throwable {
 
-    final Map<byte[],R> results = new TreeMap<byte[],R>(
-        Bytes.BYTES_COMPARATOR);
+    final Map<byte[],R> results =  Collections.synchronizedMap(new TreeMap<byte[],R>(
+        Bytes.BYTES_COMPARATOR));
     coprocessorExec(protocol, startKey, endKey, callable,
         new Batch.Callback<R>(){
       public void update(byte[] region, byte[] row, R value) {



Mime
View raw message