HBASE-25597 Add row info in Exception when cell size exceeds maxCellSize (#2976)

Signed-off-by: stack <stack@apache.org>
This commit is contained in:
Baiqiang Zhao 2021-03-16 06:49:33 +08:00 committed by stack
parent df2daf9e1e
commit aa6c013a01
1 changed files with 2 additions and 1 deletions

View File

@ -899,7 +899,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);
}