Andrew Wong has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/17391


Change subject: wip [txns][tools] show details of a transaction
......................................................................

wip [txns][tools] show details of a transaction

This adds a tool to show information related to a single transaction,
including metadata from all of its participants. The goal of this tool
is to be useful in debugging slow commits or inconsistencies with a
transaction.

Currently this outputs any and all metadata stored in participant's
metadata for the transaction.

Sample output:

~/Repositories/kudu/build/release > ./bin/kudu txns show 0.0.0.0:8764 1
 txn_id | user  |   state   |     commit_ts (datetime)
--------+-------+-----------+-------------------------------
 1      | awong | COMMITTED | Thu, 29 Apr 2021 22:12:53 GMT

            tablet_id             | is_aborted | flushed_committed_mrs | 
begin_commit_op_ts (datetime) |     commit_ts (datetime)
----------------------------------+------------+-----------------------+-------------------------------+-------------------------------
 ef0fdfb0138243bb96842c3416975036 | false      | true                  | Thu, 
29 Apr 2021 22:12:53 GMT | Thu, 29 Apr 2021 22:12:53 GMT
 a40dfcf24d9a4e6197d36e829ae8e8be | false      | true                  | Thu, 
29 Apr 2021 22:12:53 GMT | Thu, 29 Apr 2021 22:12:53 GMT
 982fed88ce9543c4a5b52b8bc820bd96 | false      | true                  | Thu, 
29 Apr 2021 22:12:53 GMT | Thu, 29 Apr 2021 22:12:53 GMT
 95b786e165a74a0a8b35f754d39ed1d5 | false      | true                  | Thu, 
29 Apr 2021 22:12:53 GMT | Thu, 29 Apr 2021 22:12:53 GMT
 3d5f35843b5346e193701c619fc64723 | false      | true                  | Thu, 
29 Apr 2021 22:12:53 GMT | Thu, 29 Apr 2021 22:12:53 GMT
 8ff6821ab81b4e21817ec7a82dbb770e | false      | true                  | Thu, 
29 Apr 2021 22:12:53 GMT | Thu, 29 Apr 2021 22:12:53 GMT
 77e5ff31de8b490fb33251b1351e5c2a | false      | true                  | Thu, 
29 Apr 2021 22:12:53 GMT | Thu, 29 Apr 2021 22:12:53 GMT
 0d82028634244c8e8d0c7f2d190e6ec6 | false      | true                  | Thu, 
29 Apr 2021 22:12:53 GMT | Thu, 29 Apr 2021 22:12:53 GMT

wip: add tests, gather feedback, split it up

Change-Id: I9cc5c23b6b46ee75e38aaffe4773881a1ece7294
---
M src/kudu/tablet/tablet_metadata.cc
M src/kudu/tablet/tablet_metadata.h
M src/kudu/tablet/txn_coordinator.h
M src/kudu/tablet/txn_metadata.h
M src/kudu/tools/tool_action_txns.cc
M src/kudu/transactions/participant_rpc.cc
M src/kudu/transactions/participant_rpc.h
M src/kudu/transactions/txn_status_manager-test.cc
M src/kudu/transactions/txn_status_manager.cc
M src/kudu/transactions/txn_status_manager.h
M src/kudu/transactions/txn_system_client.cc
M src/kudu/transactions/txn_system_client.h
M src/kudu/tserver/tablet_service.cc
M src/kudu/tserver/tserver_admin.proto
14 files changed, 316 insertions(+), 82 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/91/17391/1
--
To view, visit http://gerrit.cloudera.org:8080/17391
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9cc5c23b6b46ee75e38aaffe4773881a1ece7294
Gerrit-Change-Number: 17391
Gerrit-PatchSet: 1
Gerrit-Owner: Andrew Wong <[email protected]>

Reply via email to