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:
parent
d0422748f1
commit
a701f0ef32
|
@ -641,7 +641,9 @@ public final class RequestConverter {
|
|||
if (!multiRequestBuilder.hasNonceGroup() && hasNonce) {
|
||||
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
|
||||
// it will corrupt the sequence order maintained in cells.
|
||||
|
@ -810,7 +812,9 @@ public final class RequestConverter {
|
|||
if (!multiRequestBuilder.hasNonceGroup() && hasNonce) {
|
||||
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
|
||||
// it will corrupt the sequence order maintained in cells.
|
||||
|
|
Loading…
Reference in New Issue