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/14 19:19:09 UTC

[kudu-CR] [txns][tools] show details of a transaction

Hello Tidy Bot, Alexey Serbin, Kudu Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/17391

to look at the new patch set (#2).

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

[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 info stored in participant's metadata for the
transaction.

$ kudu txn show 0.0.0.0:7051 0
 txn_id | user  |   state   |        commit_datetime
--------+-------+-----------+-------------------------------
 0      | awong | COMMITTED | Fri, 14 May 2021 19:15:18 GMT

            tablet_id             |     begin_commit_datetime     |        commit_datetime
----------------------------------+-------------------------------+-------------------------------
 9204d93c0af14292843b6d432d281fb5 | Fri, 14 May 2021 19:15:18 GMT | Fri, 14 May 2021 19:15:18 GMT

The new tool abides by the --columns flag, as done with the
`kudu txn list` tool, with some additional options for
participant-specific columns.

Change-Id: I9cc5c23b6b46ee75e38aaffe4773881a1ece7294
---
M src/kudu/tools/kudu-txn-cli-test.cc
M src/kudu/tools/tool_action_txn.cc
M src/kudu/transactions/txn_system_client.h
3 files changed, 321 insertions(+), 54 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/91/17391/2
-- 
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: newpatchset
Gerrit-Change-Id: I9cc5c23b6b46ee75e38aaffe4773881a1ece7294
Gerrit-Change-Number: 17391
Gerrit-PatchSet: 2
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)