[
https://issues.apache.org/jira/browse/KUDU-3265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17357396#comment-17357396
]
ASF subversion and git services commented on KUDU-3265:
-------------------------------------------------------
Commit 9f33983fac63fd0ed45ed92af807650c5734894b in kudu's branch
refs/heads/branch-1.15.x from Alexey Serbin
[ https://gitbox.apache.org/repos/asf?p=kudu.git;h=9f33983 ]
KUDU-3265 txn-related options to 'kudu perf loadgen'
This patch adds the following txn-related options to the
'kudu perf loadgen' tool:
(1) --txn_start
(2) --txn_commit
(3) --txn_rollback
With those, it's possible to insert rows into the table in the scope
of a multi-row transaction, and then (1) leave the transaction
as is, or (2) commit the transaction, or (3) rollback the transaction
explicitly.
Semantically, specifying --txn_commit or --txn_rollback implies setting
--txn_start as well.
This patch partially addresses KUDU-3265. A follow-up patch will add
functionality to write and read transactional tokens in serialized form,
so the newly introduced --txn_start option starts making more sense.
With that, it will be possible to start a new multi-row transaction
in one session of the kudu CLI tool, and then continue adding more rows
in another session of the kudu CLI tool, passing around transactional
token.
Change-Id: I73750af589d432c6ae973439264f55c08a327aa7
Reviewed-on: http://gerrit.cloudera.org:8080/17526
Tested-by: Kudu Jenkins
Reviewed-by: Andrew Wong <[email protected]>
(cherry picked from commit e574903ace741a531c49aba15f97e856ea80ca4b)
Reviewed-on: http://gerrit.cloudera.org:8080/17540
Reviewed-by: Bankim Bhavsar <[email protected]>
> Add an option to use multi-row transaction session for write operations for
> "kudu perf loadgen"
> -----------------------------------------------------------------------------------------------
>
> Key: KUDU-3265
> URL: https://issues.apache.org/jira/browse/KUDU-3265
> Project: Kudu
> Issue Type: Improvement
> Components: CLI
> Reporter: Alexey Serbin
> Priority: Major
> Labels: CLI, tools
>
> KUDU-2612 adds support for multi-row transactions (INSERT/INSERT_INGORE
> operations only for now). With that, it makes sense to extend the
> functionality of the {{kudu perf loadgen}} CLI tool to insert test rows in
> the context of multi-row transaction.
> It would be great to:
> * add an option to {{kudu perf loadgen}} to start a new multi-row transaction
> and insert test rows in a transactional session
> * add an option to output the transaction handle in a serialized form (i.e.
> produce transaction token)
> * add an option to load information about a multi-row transaction from a
> transaction token and insert test rows as part of the given transaction
> * add an option to commit, rollback, or do nothing with the transaction
> (should leave transaction as is by default, i.e. neither commit, nor rollback)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)