From 7641b5423d21d04b2e73f9cf82cc1b97d3382966 Mon Sep 17 00:00:00 2001 From: Jing Yu Date: Sun, 10 Mar 2024 00:43:46 -0800 Subject: [PATCH] HBASE-28424 Set correct Result to RegionActionResult for successful Put/Delete mutations (#5760) Signed-off-by: Viraj Jasani --- .../org/apache/hadoop/hbase/regionserver/RSRpcServices.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java index 25b229fd0c4e..7043b78c0485 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java @@ -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: