Skip to content

Commit

Permalink
HBASE-24077 When encounter RowTooBigException, log the row info. (#1379)
Browse files Browse the repository at this point in the history
Signed-off-by: Viraj Jasani <[email protected]>
Signed-off-by: Pankaj <[email protected]>
Signed-off-by: Jan Hentschel <[email protected]>
  • Loading branch information
binlijin authored Apr 7, 2020
1 parent 15b94cc commit 62718cd
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,13 @@ public boolean next(List<Cell> outResult, ScannerContext scannerContext) throws
scannerContext.incrementBatchProgress(1);

if (matcher.isUserScan() && totalBytesRead > maxRowSize) {
throw new RowTooBigException(
"Max row size allowed: " + maxRowSize + ", but the row is bigger than that.");
String message = "Max row size allowed: " + maxRowSize
+ ", but the row is bigger than that, the row info: " + CellUtil
.toString(cell, false) + ", already have process row cells = " + outResult.size()
+ ", it belong to region = " + store.getHRegion().getRegionInfo()
.getRegionNameAsString();
LOG.warn(message);
throw new RowTooBigException(message);
}
}

Expand Down

0 comments on commit 62718cd

Please sign in to comment.