forked from apache/kudu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ksck] KUDU-3258: allow ksck and rebalancer to work on txn status table
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. Since ksck and the rebalancer use the same cluster-examining code, this patch also updates the rebalancer cluster_status class to account for system tables -- the tool would have crashed upon trying to find the replication factor of the system table otherwise. Change-Id: I8162f6eb046d98791c6bdeb5c15a0af72487300d Reviewed-on: http://gerrit.cloudera.org:8080/17315 Tested-by: Andrew Wong <[email protected]> Reviewed-by: Alexey Serbin <[email protected]>
- Loading branch information
Showing
11 changed files
with
247 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.