-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#8943] DocDb: Add on-disk size to master Tables UI
Summary: Add Table\Index\TableGroup\ColocatedTable size to the master UI. It now correctly handles all table types, and only shows the size for the entities that own dedicated tablet(s). Adding Colocation ID only if colocated tables are present. Refactored the entire function to make it simpler. {F23915} {F23914} {F23916} Test Plan: Tested locally with regular, colocated, and tablegroup tables and indexes. CREATE DATABASE yb_demo; \c yb_demo \i sample/schema.sql CREATE TABLEGROUP tg1; create table t3(a int) tablegroup tg1; create index tbl3_idx2 on t3(a) tablegroup tg1; create index tbl3_idx1 on t3(a); create index orders_idx1 on orders(id); \i sample/orders.sql CREATE DATABASE yb_colocated colocated= true; \c yb_colocated \i sample/schema.sql ./build/latest/bin/yb-admin -master_addresses 127.0.0.1:7100 compact_table ysql.yb_demo orders ./build/latest/bin/yb-admin -master_addresses 127.0.0.1:7100 compact_table ysql.yb_demo orders_idx1 Reviewers: bogdan, skedia, mpolitov, alex Reviewed By: alex Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D16048
- Loading branch information
Showing
2 changed files
with
164 additions
and
115 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