HBASE-24600 Empty RegionAction added to MultiRequest in case of RowMutations/CheckAndMutate batch

Signed-off-by: Guanghao Zhang <zghao@apache.org>
This commit is contained in:
Toshihiro Suzuki 2020-06-25 09:52:44 +09:00
parent d0422748f1
commit a701f0ef32
1 changed files with 6 additions and 2 deletions

View File

@ -641,7 +641,9 @@ public final class RequestConverter {
if (!multiRequestBuilder.hasNonceGroup() && hasNonce) {
multiRequestBuilder.setNonceGroup(nonceGroup);
}
if (builder.getActionCount() > 0) {
multiRequestBuilder.addRegionAction(builder.build());
}
// Process RowMutations here. We can not process it in the big loop above because
// it will corrupt the sequence order maintained in cells.
@ -810,7 +812,9 @@ public final class RequestConverter {
if (!multiRequestBuilder.hasNonceGroup() && hasNonce) {
multiRequestBuilder.setNonceGroup(nonceGroup);
}
if (builder.getActionCount() > 0) {
multiRequestBuilder.addRegionAction(builder.build());
}
// Process RowMutations here. We can not process it in the big loop above because
// it will corrupt the sequence order maintained in cells.