pankaj72981 commented on a change in pull request #1379: HBASE-24077 When 
encounter RowTooBigException, log the row info.
URL: https://github.com/apache/hbase/pull/1379#discussion_r400422867
 
 

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java
 ##########
 @@ -635,8 +635,14 @@ 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.");
+              LOG.warn("Max row size allowed: {}, but the row is bigger than 
that, the row info: "
+                  + "{}, already have process row cells = {}, it belong to 
region = {}",
+                maxRowSize, CellUtil.toString(cell, true), outResult.size(),
 
 Review comment:
   IMO client data shouldn't be logged at sever side. We can throw 
RowTooBigException with rowKey.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to