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


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
Reviewed-on: http://gerrit.cloudera.org:8080/17475
Reviewed-by: Alexey Serbin <[email protected]>
Tested-by: Kudu Jenkins
(cherry picked from commit 1a8e8c39a7bb378da6d10e88aae80bf4eeb2a057)
---
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, 87 insertions(+), 36 deletions(-)



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

Gerrit-Project: kudu
Gerrit-Branch: branch-1.15.x
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4d4f77b4c9b7fcc3f7f749b7f79a18a24be3ce4d
Gerrit-Change-Number: 17476
Gerrit-PatchSet: 1
Gerrit-Owner: Andrew Wong <[email protected]>

Reply via email to