Repository: hive
Updated Branches:
  refs/heads/branch-1 cb3945209 -> ae4d5ceb0


 HIVE-14408 : thread safety issue in fast hashtable (Sergey Shelukhin, reviewed 
by Gopal V) ADDENDUM


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

Branch: refs/heads/branch-1
Commit: ae4d5ceb06ec0b424f62765729bdade772e0bd98
Parents: cb39452
Author: Sergey Shelukhin <[email protected]>
Authored: Wed Aug 3 12:43:25 2016 -0700
Committer: Sergey Shelukhin <[email protected]>
Committed: Wed Aug 3 12:43:25 2016 -0700

----------------------------------------------------------------------
 .../hadoop/hive/ql/exec/persistence/BytesBytesMultiHashMap.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/ae4d5ceb/ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/BytesBytesMultiHashMap.java
----------------------------------------------------------------------
diff --git 
a/ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/BytesBytesMultiHashMap.java
 
b/ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/BytesBytesMultiHashMap.java
index 080c509..36c43c4 100644
--- 
a/ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/BytesBytesMultiHashMap.java
+++ 
b/ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/BytesBytesMultiHashMap.java
@@ -492,7 +492,7 @@ public final class BytesBytesMultiHashMap {
 
   /** Not thread-safe! Use createGetterForThread. */
   public byte getValueResult(byte[] key, int offset, int length, Result 
hashMapResult) {
-    return getValueResult(key, offset, length, hashMapResult, 
writeBuffers.getReadPosition());
+    return getValueResult(key, offset, length, hashMapResult, 
writeBuffers.getUnsafeReadPosition());
   }
 
   /**

Reply via email to