[
https://issues.apache.org/jira/browse/HBASE-25742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17319160#comment-17319160
]
Zhuoyue Huang commented on HBASE-25742:
---------------------------------------
I used HBase 2.2.3 and follow your steps. Can't reproduce your bug.
{code:java}
hbase(main):001:0> create 'Merget1', 'f1', {REGION_REPLICATION => 2}
Created table Merget1
Took 1.5964 seconds
=> Hbase::Table - Merget1
hbase(main):002:0> split 'Merget1','20'
Took 0.2396 seconds
hbase(main):003:0> list_regions 'Merget1'
SERVER_NAME |
REGION_NAME | START_KEY | END_KEY | SIZE | REQ |
LOCALITY |
---------------------------------------- |
--------------------------------------------------------------- | ---------- |
---------- | ----- | ----- | ---------- |
georry-optiplex-7050,16020,1618216024927 |
Merget1,,1618216056791.eeb385df85f7da33c477163aa3171bdc. | |
20 | 0 | 0 | 0.0 |
georry-optiplex-7050,16020,1618216024927 |
Merget1,,1618216056791_0001.1158009fd75c131e7b734e94cbaaa622. | |
20 | 0 | 0 | 0.0 |
georry-optiplex-7050,16020,1618216024927 |
Merget1,20,1618216056791.e69f8ea9ea38484f6e4b84c7e2cdb8ce. | 20 |
| 0 | 0 | 0.0 |
georry-optiplex-7050,16020,1618216024927 |
Merget1,20,1618216056791_0001.089cd8c371436577e5f5dc750197595a. | 20 |
| 0 | 0 | 0.0 |
4 rows
Took 0.1287 seconds
hbase(main):004:0> merge_region
'eeb385df85f7da33c477163aa3171bdc','e69f8ea9ea38484f6e4b84c7e2cdb8ce'
Took 0.1484 seconds
hbase(main):005:0> list_regions 'Merget1'
SERVER_NAME |
REGION_NAME | START_KEY | END_KEY | SIZE | REQ |
LOCALITY |
---------------------------------------- |
------------------------------------------------------------- | ---------- |
---------- | ----- | ----- | ---------- |
georry-optiplex-7050,16020,1618216024927 |
Merget1,,1618216056792.a1806408d52148f601cd86d9cc9a2755. | |
| 0 | 0 | 0.0 |
georry-optiplex-7050,16020,1618216024927 |
Merget1,,1618216056792_0001.03f140fe05f79c9119eaef589c0725b9. | |
| 0 | 0 | 0.0 |
2 rows
Took 0.0448 seconds
{code}
Can you provide more information or is there any problem with the steps?
[~Ashok shetty]
> HBASE shell list_regions doesn't work when region replica is enabled after
> merge regions
> -----------------------------------------------------------------------------------------
>
> Key: HBASE-25742
> URL: https://issues.apache.org/jira/browse/HBASE-25742
> Project: HBase
> Issue Type: Bug
> Components: read replicas, shell
> Affects Versions: 2.2.3
> Reporter: Ashok shetty
> Priority: Minor
> Attachments: image-2021-04-07-16-10-50-935.png
>
>
> steps :
> 1.create 'Merget1', 'f1', \{REGION_REPLICATION => 2}
> 2. split 'Merget1','20'
> 3.list_regions 'Merget1'
> 4. merge_region 'EncodeRegionName1','EncodeRegionName2'
> 5. when list_regions 'Merget1' getting undefined method
> !image-2021-04-07-16-10-50-935.png!
> *Issue doesn't seems to occur for tables which do not have region replica
> enabled*
--
This message was sent by Atlassian Jira
(v8.3.4#803005)