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:
parent
5ecb63b539
commit
475420205c
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue