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 GitHub
parent 0ef892b68a
commit db2e6d8c63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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