You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "He Liangliang (JIRA)" <ji...@apache.org> on 2016/03/21 14:30:25 UTC
[jira] [Updated] (HBASE-15498) Add conditions in
MultiRowMutationService
[ https://issues.apache.org/jira/browse/HBASE-15498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
He Liangliang updated HBASE-15498:
----------------------------------
Description:
Many applications especially online services need conditional batch operations to achieve atomicity. We can add conditions in MultiRowMutationService like:
{code:java}
message MutateRowsRequest {
repeated MutationProto mutation_request = 1;
optional uint64 nonce_group = 2;
optional uint64 nonce = 3;
repeated Condition condition = 4;
}
message MutateRowsResponse {
repeated int32 unmet_conditions = 1;
}
service MultiRowMutationService {
rpc MutateRows(MutateRowsRequest)
returns(MutateRowsResponse);
}
{code}
was:
Many applications especially online services need conditional batch operations to achieve atomicity. We can add conditions in MultiRowMutationService like:
<code>
message MutateRowsRequest {
repeated MutationProto mutation_request = 1;
optional uint64 nonce_group = 2;
optional uint64 nonce = 3;
repeated Condition condition = 4;
}
message MutateRowsResponse {
repeated int32 unmet_conditions = 1;
}
service MultiRowMutationService {
rpc MutateRows(MutateRowsRequest)
returns(MutateRowsResponse);
}
</code>
> Add conditions in MultiRowMutationService
> -----------------------------------------
>
> Key: HBASE-15498
> URL: https://issues.apache.org/jira/browse/HBASE-15498
> Project: HBase
> Issue Type: New Feature
> Components: Coprocessors
> Reporter: He Liangliang
>
> Many applications especially online services need conditional batch operations to achieve atomicity. We can add conditions in MultiRowMutationService like:
> {code:java}
> message MutateRowsRequest {
> repeated MutationProto mutation_request = 1;
> optional uint64 nonce_group = 2;
> optional uint64 nonce = 3;
> repeated Condition condition = 4;
> }
> message MutateRowsResponse {
> repeated int32 unmet_conditions = 1;
> }
> service MultiRowMutationService {
> rpc MutateRows(MutateRowsRequest)
> returns(MutateRowsResponse);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)