[ https://issues.apache.org/jira/browse/HBASE-21478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16690951#comment-16690951 ]
Xiang Li commented on HBASE-21478: ---------------------------------- [~yuzhih...@gmail.com] RSGroupInfo#getTables() references a SortedSet(TreeSet). And I plan to create another SortedSet which is sorted in terms of TableName#namespaceAsString then TableName#nameAsString. It seems it will create a lot of SortedSet if I new a SortedSet in getTablesSortedByNamespaceAndName(), what about adding another private member as a copy of tables into RSGroupInfo, and rebuilding it from the existing "tables" whenever getTablesSortedByNamespaceAndName() is called. > Make table sorted when displaying rsgroup info in shell and master web UI > ------------------------------------------------------------------------- > > Key: HBASE-21478 > URL: https://issues.apache.org/jira/browse/HBASE-21478 > Project: HBase > Issue Type: Improvement > Components: rsgroup > Reporter: Xiang Li > Assignee: Xiang Li > Priority: Minor > > Regarding the output of the command of "get_rsgoup" in hbase shell, or the > section of "Server Group" of HMaster's web UI, the tables are not sorted, so > not quite easy to read, like: > {code} > hbase(main):003:0> get_rsgroup 'default' > GROUP INFORMATION > ... > Tables: > table3 > ns2:table22 > table1 > ns1:table11 > ... > {code} > They could be sorted in the order of namespace then table name: > {code} > table1 > table3 > ns1:table11 > ns2:table22 > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)