You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Andrew Wong (Code Review)" <ge...@cloudera.org> on 2021/05/03 23:25:32 UTC
[kudu-CR] [txns][tools] tool to list transactions
Hello Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/17370
to look at the new patch set (#4).
Change subject: [txns][tools] tool to list transactions
......................................................................
[txns][tools] tool to list transactions
This patch adds a tool to iterate through the transactions, listing their
states and interesting metadata. It includes some optional flags, shown
specified below:
$ ./bin/kudu txns list 0.0.0.0:8764 --show_hybrid_timestamps --min_txn_id=1 --max_txn_id=2
txn_id | user | state | commit_ts (datetime) | commit_ts (hybrid timestamp)
--------+-------+-----------+-------------------------------+--------------------------------
1 | awong | COMMITTED | Thu, 29 Apr 2021 22:12:53 GMT | P: 1619734373050242 usec, L: 0
2 | awong | ABORTED | <none> | <none>
I suspect we'll want to limit the output by default to only show open
transactions, but that will come as a follow-up change.
Change-Id: I6136fe8eea7842802c5a84609a0c8e2101f6a693
---
M src/kudu/tools/CMakeLists.txt
M src/kudu/tools/kudu-tool-test.cc
A src/kudu/tools/kudu-txns-cli-test.cc
M src/kudu/tools/tool_action.h
A src/kudu/tools/tool_action_txns.cc
M src/kudu/tools/tool_main.cc
6 files changed, 340 insertions(+), 0 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/70/17370/4
--
To view, visit http://gerrit.cloudera.org:8080/17370
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I6136fe8eea7842802c5a84609a0c8e2101f6a693
Gerrit-Change-Number: 17370
Gerrit-PatchSet: 4
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)