HBASE-24600 Empty RegionAction added to MultiRequest in case of RowMutations/CheckAndMutate batch (#1938)

Signed-off-by: Guanghao Zhang <zghao@apache.org>
This commit is contained in:
Toshihiro Suzuki 2020-06-25 09:52:44 +09:00 committed by GitHub
parent f67846ed35
commit 7fee4b5fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

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