Hello Alexey Serbin,

I'd like you to do a code review. Please visit

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

to review the following change.


Change subject: [txns] add fields for create and update times
......................................................................

[txns] add fields for create and update times

This patch adds fields to the transaction status entry for the start
time and the last update time. This is reported in both the `txn list`
and `txn show` tools.

$ ./bin/kudu txn list 0.0.0.0:8764  --included_states="*"
 txn_id | user  |   state   |        commit_datetime        |        
start_datetime         |   last_transition_datetime
--------+-------+-----------+-------------------------------+-------------------------------+-------------------------------
 0      | awong | COMMITTED | Thu, 29 Apr 2021 18:54:56 GMT | <none>            
            | <none>
 1      | awong | COMMITTED | Thu, 29 Apr 2021 22:12:53 GMT | <none>            
            | <none>
 2      | awong | ABORTED   | <none>                        | <none>            
            | <none>
 3      | awong | ABORTED   | <none>                        | <none>            
            | <none>
 4      | awong | COMMITTED | Tue, 18 May 2021 07:41:34 GMT | Tue, 18 May 2021 
07:41:34 GMT | Tue, 18 May 2021 07:41:34 GMT
 5      | awong | ABORTED   | <none>                        | Tue, 18 May 2021 
07:42:22 GMT | Tue, 18 May 2021 07:42:56 GMT
 6      | awong | COMMITTED | Tue, 18 May 2021 07:42:33 GMT | Tue, 18 May 2021 
07:42:32 GMT | Tue, 18 May 2021 07:42:33 GMT
 7      | awong | ABORTED   | <none>                        | Tue, 18 May 2021 
07:47:16 GMT | Tue, 18 May 2021 07:47:46 GMT

Change-Id: I4d4f77b4c9b7fcc3f7f749b7f79a18a24be3ce4d
---
M src/kudu/tools/kudu-txn-cli-test.cc
M src/kudu/tools/tool_action_txn.cc
M src/kudu/transactions/transactions.proto
M src/kudu/transactions/txn_status_manager.cc
M src/kudu/transactions/txn_status_tablet-test.cc
M src/kudu/transactions/txn_status_tablet.cc
M src/kudu/transactions/txn_status_tablet.h
7 files changed, 80 insertions(+), 35 deletions(-)



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4d4f77b4c9b7fcc3f7f749b7f79a18a24be3ce4d
Gerrit-Change-Number: 17475
Gerrit-PatchSet: 1
Gerrit-Owner: Andrew Wong <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>

Reply via email to