| 136 | return partition_on_tablet |
| 137 | |
| 138 | def GetTablesStatus(output): |
| 139 | # tid pid offset mode state enable_expire ttl ttl_offset memused compress_type skiplist_height |
| 140 | lines = output.split("\n") |
| 141 | content_is_started = False |
| 142 | partition_on_tablet = {} |
| 143 | for line in lines: |
| 144 | if line.startswith("---------"): |
| 145 | content_is_started = True |
| 146 | continue |
| 147 | if not content_is_started: |
| 148 | continue |
| 149 | partition = line.split() |
| 150 | if len(partition) < 4: |
| 151 | continue |
| 152 | |
| 153 | key = "{}_{}".format(partition[0], partition[1]) |
| 154 | partition_on_tablet[key] = partition |
| 155 | return partition_on_tablet |
| 156 | |
| 157 | def Analysis(): |
| 158 | # show table |