hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r1562579 - /hbase/branches/0.98/hbase-common/src/main/java/org/apache/hadoop/hbase/io/encoding/BufferedDataBlockEncoder.java
Date Wed, 29 Jan 2014 20:35:51 GMT
Author: apurtell
Date: Wed Jan 29 20:35:50 2014
New Revision: 1562579

URL: http://svn.apache.org/r1562579
Log:
HBASE-10438 NPE from LRUDictionary when size reaches the max init value (Ramkrishna S. Vasudevan)

Modified:
    hbase/branches/0.98/hbase-common/src/main/java/org/apache/hadoop/hbase/io/encoding/BufferedDataBlockEncoder.java

Modified: hbase/branches/0.98/hbase-common/src/main/java/org/apache/hadoop/hbase/io/encoding/BufferedDataBlockEncoder.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-common/src/main/java/org/apache/hadoop/hbase/io/encoding/BufferedDataBlockEncoder.java?rev=1562579&r1=1562578&r2=1562579&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-common/src/main/java/org/apache/hadoop/hbase/io/encoding/BufferedDataBlockEncoder.java
(original)
+++ hbase/branches/0.98/hbase-common/src/main/java/org/apache/hadoop/hbase/io/encoding/BufferedDataBlockEncoder.java
Wed Jan 29 20:35:50 2014
@@ -183,6 +183,9 @@ abstract class BufferedDataBlockEncoder 
 
     @Override
     public void setCurrentBuffer(ByteBuffer buffer) {
+      if (this.tagCompressionContext != null) {
+        this.tagCompressionContext.clear();
+      }
       currentBuffer = buffer;
       decodeFirst();
       previous.invalidate();



Mime
View raw message