Andrew Wong has uploaded this change for review. ( 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 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, 339 insertions(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/70/17370/1 -- 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: newchange Gerrit-Change-Id: I6136fe8eea7842802c5a84609a0c8e2101f6a693 Gerrit-Change-Number: 17370 Gerrit-PatchSet: 1 Gerrit-Owner: Andrew Wong <[email protected]>
