Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 10-05-2020 06:54 AM
Hi there,
I have some issue with disable the region replication for a table.
HBase version: 2.0.2.3.1.4.0-315
I have region replication enabled on a single table (REGION_REPLICATION => 2), which doubled amount of regions of the table. I keep it for a while and then changed region replication to 1 (via alter 'table', 'cf', {REGION_REPLICATION => '1'}).
What I expected to see is the number of region go down. But it wasn't happened.
What I tried:
Does anyone know what is the procedure for disabling a region replication and how to get rid of secondaries regions?
Created 10-29-2020 04:36 AM
Hello @kras
Unfortunately, there is no Clean Way to remove such Secondary Regions. The concerned issue is tracked via HBASE-24720. 1 Quick Fix would be to create a Snapshot on say, Table_A (Which had RegionReplication reduced from 2 to 1), CloneSnapshot to a new Table (Table_B). Table_B would have 1 Region.
- Smarak
Created 10-28-2020 11:12 PM
Hello @kras
I was able to reproduce the concerned behaviour as well. Checking internally on the Steps to safely remove the Secondary Regions. Shall Update the Post once a Solution is found.
- Smarak
Created 10-29-2020 04:36 AM
Hello @kras
Unfortunately, there is no Clean Way to remove such Secondary Regions. The concerned issue is tracked via HBASE-24720. 1 Quick Fix would be to create a Snapshot on say, Table_A (Which had RegionReplication reduced from 2 to 1), CloneSnapshot to a new Table (Table_B). Table_B would have 1 Region.
- Smarak