Andrew Wong has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/17370 )
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 txn list 0.0.0.0:8764 --min_txn_id=3 --max_txn_id=5 --columns=txn_id,user,state,commit_datetime,commit_hybridtime txn_id | user | state | commit_datetime | commit_hybridtime --------+-------+-----------+-------------------------------+-------------------------------- 3 | awong | COMMITTED | Wed, 12 May 2021 00:06:08 GMT | P: 1620777968630364 usec, L: 0 4 | awong | COMMITTED | Wed, 12 May 2021 00:06:08 GMT | P: 1620777968671147 usec, L: 0 5 | awong | COMMITTED | Wed, 12 May 2021 00:06:08 GMT | P: 1620777968713376 usec, L: 0 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 Reviewed-on: http://gerrit.cloudera.org:8080/17370 Tested-by: Kudu Jenkins Reviewed-by: Alexey Serbin <[email protected]> --- M src/kudu/tools/CMakeLists.txt M src/kudu/tools/kudu-tool-test.cc A src/kudu/tools/kudu-txn-cli-test.cc M src/kudu/tools/tool_action.h A src/kudu/tools/tool_action_txn.cc M src/kudu/tools/tool_main.cc 6 files changed, 390 insertions(+), 0 deletions(-) Approvals: Kudu Jenkins: Verified Alexey Serbin: Looks good to me, approved -- 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: merged Gerrit-Change-Id: I6136fe8eea7842802c5a84609a0c8e2101f6a693 Gerrit-Change-Number: 17370 Gerrit-PatchSet: 12 Gerrit-Owner: Andrew Wong <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Andrew Wong <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120)
