From db2e6d8c63875b6ac8715036f21ea1e622fd263a Mon Sep 17 00:00:00 2001 From: Baiqiang Zhao Date: Tue, 16 Mar 2021 06:49:33 +0800 Subject: [PATCH] HBASE-25597 Add row info in Exception when cell size exceeds maxCellSize (#2976) Signed-off-by: stack --- .../org/apache/hadoop/hbase/regionserver/RSRpcServices.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java index 54395c3e0ac..d06778a2102 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java @@ -902,7 +902,8 @@ public class RSRpcServices implements HBaseRPCErrorHandler, while (cells.advance()) { int size = PrivateCellUtil.estimatedSerializedSizeOf(cells.current()); if (size > r.maxCellSize) { - String msg = "Cell with size " + size + " exceeds limit of " + r.maxCellSize + " bytes"; + String msg = "Cell[" + cells.current() + "] with size " + size + + " exceeds limit of " + r.maxCellSize + " bytes"; LOG.debug(msg); throw new DoNotRetryIOException(msg); }