Index: src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlockIndex.java =================================================================== --- src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlockIndex.java (revision 1389405) +++ src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlockIndex.java (working copy) @@ -929,6 +929,8 @@ // We do have some entries in the current inline chunk. if (closing) { if (rootChunk.getNumEntries() == 0) { + if (curInlineChunk.getNonRootSize() >= maxChunkSize) + return true; // We did not add any leaf-level blocks yet. Instead of creating a // leaf level with one block, move these entries to the root level.