[
https://issues.apache.org/jira/browse/HBASE-22735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16894580#comment-16894580
]
Andrew Purtell commented on HBASE-22735:
----------------------------------------
It's not quite right.
bq. [B@364b1061
This is the output of object.toString() where the object type is byte[]. It
should be printed with Bytes.toString(object).
The region is still a part of the table even if in transition. We should
display some bare information like name, start key, and end key.
> list_regions may throw an error if a region is RIT
> --------------------------------------------------
>
> Key: HBASE-22735
> URL: https://issues.apache.org/jira/browse/HBASE-22735
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 1.5.0
> Reporter: Andrew Purtell
> Priority: Minor
> Fix For: 3.0.0, 1.5.0, 2.3.0, 2.2.1, 2.1.6, 1.3.6, 1.4.11
>
>
> The 'list_regions' shell command gets a list of regions for a given table and
> then prints them and some attributes such as the server where they are
> located, current request count, data locality, and such.
> However if a region is in transition the command might fail with
> {{ERROR: undefined method `getDataLocality' for nil:NilClass}}
> and there may be other ways this can happen. Protect against use of nil
> references and just display what we can.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)