You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Peter Somogyi (Jira)" <ji...@apache.org> on 2020/07/14 17:18:00 UTC

[jira] [Resolved] (HBASE-24720) Meta replicas not cleaned when disabled

     [ https://issues.apache.org/jira/browse/HBASE-24720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Somogyi resolved HBASE-24720.
-----------------------------------
    Fix Version/s: 2.2.6
                   2.4.0
                   2.3.1
                   3.0.0-alpha-1
       Resolution: Fixed

Thanks for the commit [~bszabolcs]! Pushed to branch-2.2+.

> Meta replicas not cleaned when disabled
> ---------------------------------------
>
>                 Key: HBASE-24720
>                 URL: https://issues.apache.org/jira/browse/HBASE-24720
>             Project: HBase
>          Issue Type: Bug
>          Components: read replicas
>    Affects Versions: 3.0.0-alpha-1, 2.3.0, 2.4.0, 2.2.5
>            Reporter: Szabolcs Bukros
>            Assignee: Szabolcs Bukros
>            Priority: Minor
>             Fix For: 3.0.0-alpha-1, 2.3.1, 2.4.0, 2.2.6
>
>
> The assignMetaReplicas method works kinda like this:
> {code:java}
> void assignMetaReplicas(){
> if (numReplicas <= 1) return;
> //create if needed then assign meta replicas
> unassignExcessMetaReplica(numReplicas);
> }
> {code}
> Now this unassignExcessMetaReplica method is the one that gets rid of the replicas we no longer need. It closes them and deletes their zNode.  Unfortunately this only happens if we decreased the replica number. If we disabled it, by setting the replica number to 1 assignMetaReplicas returns instantly without cleaning up the no longer needed replicas resulting in replicas lingering around.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)