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 fe077e9d0782..bb59dd7ec906 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 @@ -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: