Skip to content

Commit 7641b54

Browse files
authored
HBASE-28424 Set correct Result to RegionActionResult for successful Put/Delete mutations (#5760)
Signed-off-by: Viraj Jasani <vjasani@apache.org>
1 parent a5748a2 commit 7641b54

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,8 +1046,10 @@ private void doBatchOp(final RegionActionResult.Builder builder, final HRegion r
10461046
break;
10471047

10481048
case SUCCESS:
1049-
builder.addResultOrException(
1050-
getResultOrException(ClientProtos.Result.getDefaultInstance(), index));
1049+
ClientProtos.Result result = codes[i].getResult() == null
1050+
? ClientProtos.Result.getDefaultInstance()
1051+
: ProtobufUtil.toResult(codes[i].getResult());
1052+
builder.addResultOrException(getResultOrException(result, index));
10511053
break;
10521054

10531055
case STORE_TOO_BUSY:

0 commit comments

Comments
 (0)