diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CellChunkMap.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CellChunkMap.java index a3b45c3..7260446 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CellChunkMap.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CellChunkMap.java @@ -23,6 +23,8 @@ import java.nio.ByteBuffer; import org.apache.hadoop.hbase.Cell; import org.apache.yetus.audience.InterfaceAudience; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.apache.hadoop.hbase.util.Bytes; import org.apache.hadoop.hbase.util.ByteBufferUtils; import org.apache.hadoop.hbase.util.ClassSize; @@ -54,7 +56,7 @@ import java.util.Comparator; */ @InterfaceAudience.Private public class CellChunkMap extends CellFlatMap { - + private static final Logger LOG = LoggerFactory.getLogger(CellChunkMap.class); private final Chunk[] chunks; // the array of chunks, on which the index is based // constant number of cell-representations in a chunk @@ -101,8 +103,10 @@ public class CellChunkMap extends CellFlatMap { Chunk chunk = ChunkCreator.getInstance().getChunk(chunkId); if (chunk == null) { // this should not happen - throw new IllegalArgumentException("In CellChunkMap, cell must be associated with chunk." - + ". We were looking for a cell at index " + i); + String errMsg = "In CellChunkMap, cell must be associated with chunk." + + ". We were looking for a cell at index " + i + " with chunkId " + chunkId; + LOG.error(errMsg); + throw new IllegalArgumentException(errMsg); } // find the offset of the data of the cell, skip integer for chunkID, offset is stored second