Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-24720

Meta replicas not cleaned when disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha-1, 2.3.0, 2.4.0, 2.2.5
    • 3.0.0-alpha-1, 2.3.1, 2.4.0, 2.2.6
    • read replicas
    • None

    Description

      The assignMetaReplicas method works kinda like this:

      void assignMetaReplicas(){
      if (numReplicas <= 1) return;
      
      //create if needed then assign meta replicas
      
      unassignExcessMetaReplica(numReplicas);
      }
      

      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.

      Attachments

        Issue Links

          Activity

            People

              bszabolcs Szabolcs Bukros
              bszabolcs Szabolcs Bukros
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: