Skip to content
Permalink
Browse files
HBASE-26992 Brotli compressor has unexpected behavior during reinitia…
…lization (#4389)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
  • Loading branch information
apurtell committed Apr 30, 2022
1 parent f5a566e commit 152ecad53a4679b496188212df47d99383528b9f
Showing 1 changed file with 2 additions and 2 deletions.
@@ -162,8 +162,8 @@ public void reinit(Configuration conf) {
int newBufferSize = BrotliCodec.getBufferSize(conf);
if (bufferSize != newBufferSize) {
bufferSize = newBufferSize;
this.inBuf = ByteBuffer.allocateDirect(bufferSize);
this.outBuf = ByteBuffer.allocateDirect(bufferSize);
this.inBuf = ByteBuffer.allocate(bufferSize);
this.outBuf = ByteBuffer.allocate(bufferSize);
}
}
reset();

0 comments on commit 152ecad

Please sign in to comment.