Baiqiang Zhao created HBASE-25597:
-------------------------------------
Summary: Add row info in Exception when cell size exceeds
maxCellSize
Key: HBASE-25597
URL: https://issues.apache.org/jira/browse/HBASE-25597
Project: HBase
Issue Type: Improvement
Reporter: Baiqiang Zhao
Assignee: Baiqiang Zhao
When cell size exceeds maxCellSize(default is 10M), client will get a
DoNotRetryIOException, code as below:
{code:java}
private void checkCellSizeLimit(final HRegion r, final Mutation m) throws
IOException {
if (r.maxCellSize > 0) {
CellScanner cells = m.cellScanner();
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";
LOG.debug(msg);
throw new DoNotRetryIOException(msg);
}
}
}
}
{code}
There is no row related information, which makes troubleshooting difficult.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)