Skip to content

Commit 152ecad

Browse files
authored
HBASE-26992 Brotli compressor has unexpected behavior during reinitialization (#4389)
Signed-off-by: Duo Zhang <[email protected]>
1 parent f5a566e commit 152ecad

File tree

1 file changed

+2
-2
lines changed
  • hbase-compression/hbase-compression-brotli/src/main/java/org/apache/hadoop/hbase/io/compress/brotli

1 file changed

+2
-2
lines changed

hbase-compression/hbase-compression-brotli/src/main/java/org/apache/hadoop/hbase/io/compress/brotli/BrotliCompressor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ public void reinit(Configuration conf) {
162162
int newBufferSize = BrotliCodec.getBufferSize(conf);
163163
if (bufferSize != newBufferSize) {
164164
bufferSize = newBufferSize;
165-
this.inBuf = ByteBuffer.allocateDirect(bufferSize);
166-
this.outBuf = ByteBuffer.allocateDirect(bufferSize);
165+
this.inBuf = ByteBuffer.allocate(bufferSize);
166+
this.outBuf = ByteBuffer.allocate(bufferSize);
167167
}
168168
}
169169
reset();

0 commit comments

Comments
 (0)