Nikita Pande created HBASE-28611:
------------------------------------
Summary: [hbase-operator-tools] setRegionState log should match
actual region state
Key: HBASE-28611
URL: https://issues.apache.org/jira/browse/HBASE-28611
Project: HBase
Issue Type: Improvement
Reporter: Nikita Pande
{code:java}
hbase:007:0> list_regions 'ns1:ot1'
SERVER_NAME |
REGION_NAME | START_KEY | END_KEY | SIZE | REQ |
LOCALITY |
-------------------------------------------- |
---------------------------------------------------------- | ---------- |
---------- | ----- | ----- | ---------- |
<rshost>,16020,1716198252550 |
ns1:ot1,,1716198398262.4fee86bfd0585b9e8431bc2f8148b11b. | |
10 | 0 | 0 | 0.0 |
<rshost>,16020,1716198252550 |
ns1:ot1,10,1716198398262.ebec0c22088e9486c044458389de5e16. | 10 |
20 | 0 | 0 | 0.0 |
<rshost>,16020,1716198252550 |
ns1:ot1,20,1716198398262.fbd628f29f99d5e1ccc73abbbafc5f62. | 20 |
30 | 0 | 0 | 0.0 |
<rshost>,16020,1716198252550 |
ns1:ot1,30,1716198398262.621f63c9aebf16614bdaa4c8b22bd681. | 30 |
40 | 0 | 0 | 0.0 |
<rshost>,16020,1716198252550 |
ns1:ot1,40,1716198398262.4a3d75653f14bbbf90dda0db1a1eddcc. | 40 |
| 0 | 0 | 0.0 |{code}
{code:java}
hbase hbck -j <hbase-hbck2-jar> setRegionState 4a3d75653f14bbbf90dda0db1a1eddcc
CLOSED {code}
With this command, CLI shows the state is changed to CLOSED
{code:java}
Changed region 4a3d75653f14bbbf90dda0db1a1eddcc STATE from OPEN to CLOSED {code}
However same region state in Hbase UI is still OPEN.
Next time when I run same command again, it changes from CLOSED to CLOSED
{code:java}
Changed region 4a3d75653f14bbbf90dda0db1a1eddcc STATE from CLOSED to
CLOSED{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)