Andrew Wong has uploaded this change for review. (
http://gerrit.cloudera.org:8080/17315
Change subject: [txns][ksck] KUDU-3258: add txn system table to ksck output
......................................................................
[txns][ksck] KUDU-3258: add txn system table to ksck output
This patch adds the transaction system table to the ksck output in its
own section for system tables. Here's a sample snippet of an output that
has the system table:
Summary by system table
Name | RF | Status | Total Tablets |
Healthy | Recovering | Under-replicated | Unavailable
-------------------------------+----+------------------+---------------+---------+------------+------------------+-------------
kudu_system.kudu_transactions | 3 | UNDER_REPLICATED | 1 | 0
| 0 | 1 | 0
Summary by table
Name | RF | Status |
Total Tablets | Healthy | Recovering | Under-replicated | Unavailable
-------------------------------------------------------+----+-------------+---------------+---------+------------+------------------+-------------
default.loadgen_auto_05cf5be513ea4a84a052e8044f641c1a | 1 | UNAVAILABLE | 8
| 6 | 0 | 0 | 2
default.loadgen_auto_0c7ea48d5f6948408694b176f70e69ec | 1 | UNAVAILABLE | 8
| 5 | 0 | 0 | 3
default.loadgen_auto_241be343981c46d081ab2b3d2e3b6e6a | 1 | UNAVAILABLE | 8
| 5 | 0 | 0 | 3
default.loadgen_auto_385476d5d3b6493f8cbf659c8a4cf7cc | 1 | UNAVAILABLE | 8
| 6 | 0 | 0 | 2
default.loadgen_auto_430e280e8aa7450591da67ae15ff0f37 | 1 | UNAVAILABLE | 8
| 6 | 0 | 0 | 2
The section can be included/excluded via the --sections flag of ksck.
Change-Id: I8162f6eb046d98791c6bdeb5c15a0af72487300d
---
M src/kudu/integration-tests/txn_status_table-itest.cc
M src/kudu/rebalance/cluster_status.h
M src/kudu/tools/ksck-test.cc
M src/kudu/tools/ksck.cc
M src/kudu/tools/ksck.h
M src/kudu/tools/ksck_remote.cc
M src/kudu/tools/ksck_results.cc
M src/kudu/tools/ksck_results.h
M src/kudu/tools/tool.proto
M src/kudu/tools/tool_action_cluster.cc
10 files changed, 205 insertions(+), 76 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/15/17315/1
--
To view, visit http://gerrit.cloudera.org:8080/17315
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8162f6eb046d98791c6bdeb5c15a0af72487300d
Gerrit-Change-Number: 17315
Gerrit-PatchSet: 1
Gerrit-Owner: Andrew Wong <[email protected]>