HBASE-10438 NPE from LRUDictionary when size reaches the max init value (Ramkrishna S. Vasudevan)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1562578 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2014-01-29 20:34:03 +00:00
parent 5ecb63b539
commit 475420205c
1 changed files with 3 additions and 0 deletions

View File

@ -183,6 +183,9 @@ abstract class BufferedDataBlockEncoder implements DataBlockEncoder {
@Override @Override
public void setCurrentBuffer(ByteBuffer buffer) { public void setCurrentBuffer(ByteBuffer buffer) {
if (this.tagCompressionContext != null) {
this.tagCompressionContext.clear();
}
currentBuffer = buffer; currentBuffer = buffer;
decodeFirst(); decodeFirst();
previous.invalidate(); previous.invalidate();