[ 
https://issues.apache.org/jira/browse/HBASE-25597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17302166#comment-17302166
 ] 

Baiqiang Zhao commented on HBASE-25597:
---------------------------------------

Thank you [~stack] !

> 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
>            Priority: Minor
>             Fix For: 3.0.0-alpha-1, 2.5.0, 2.3.5, 2.4.3
>
>
> 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)

Reply via email to