You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Michael Stack (Jira)" <ji...@apache.org> on 2021/03/15 22:53:00 UTC
[jira] [Resolved] (HBASE-25597) Add row info in Exception when cell
size exceeds maxCellSize
[ https://issues.apache.org/jira/browse/HBASE-25597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Stack resolved HBASE-25597.
-----------------------------------
Fix Version/s: 2.4.3
2.3.5
2.5.0
3.0.0-alpha-1
Hadoop Flags: Reviewed
Resolution: Fixed
Helpful. Thanks for the PR [~DeanZ]. Merged to 2.3+
> 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)