Skip to content

Commit

Permalink
HBASE-28424 Set correct Result to RegionActionResult for successful P…
Browse files Browse the repository at this point in the history
…ut/Delete mutations (#5760)

Signed-off-by: Viraj Jasani <vjasani@apache.org>
  • Loading branch information
jinggou authored and virajjasani committed Mar 10, 2024
1 parent 7c08052 commit 4dffda5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1103,8 +1103,10 @@ private void doBatchOp(final RegionActionResult.Builder builder, final HRegion r
break;

case SUCCESS:
builder.addResultOrException(
getResultOrException(ClientProtos.Result.getDefaultInstance(), index));
ClientProtos.Result result = codes[i].getResult() == null
? ClientProtos.Result.getDefaultInstance()
: ProtobufUtil.toResult(codes[i].getResult());
builder.addResultOrException(getResultOrException(result, index));
break;

case STORE_TOO_BUSY:
Expand Down

0 comments on commit 4dffda5

Please sign in to comment.