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 31d183a commit 69fd2c9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,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 69fd2c9

Please sign in to comment.