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 Mar 10, 2024
1 parent a5748a2 commit 7641b54
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1046,8 +1046,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 7641b54

Please sign in to comment.