diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileWriterImpl.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileWriterImpl.java index 07fd86d03f37..80e333050c6b 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileWriterImpl.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileWriterImpl.java @@ -316,8 +316,8 @@ protected void checkBlockBoundary() throws IOException { if (encodedBlockSizeLimit > 0) { shouldFinishBlock = blockWriter.encodedBlockSizeWritten() >= encodedBlockSizeLimit; } else { - shouldFinishBlock = blockWriter.encodedBlockSizeWritten() >= hFileContext.getBlocksize() || - blockWriter.blockSizeWritten() >= hFileContext.getBlocksize(); + shouldFinishBlock = blockWriter.encodedBlockSizeWritten() >= hFileContext.getBlocksize() + || blockWriter.blockSizeWritten() >= hFileContext.getBlocksize(); } if (shouldFinishBlock) { finishBlock();