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

force unassign can confirm region online on any RS to get rid of double assignments.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.95.1
    • None
    • None
    • Reviewed

    Description

      Presently in force unassign we are offlining a region from AM and reassigning it, which may cause double assignments.

              this.assignmentManager.regionOffline(hri);
              assignRegion(hri);
      

      Any way if a region is not served by any RS we are offlining the region from AM.

             if (t instanceof NotServingRegionException) {
                if (transitionInZK) {
                  deleteClosingOrClosedNode(region);
                }
                regionOffline(region);
                return;
              } 
      

      We can change as below just to confirm whether region online on any RS.

      this.assignmentManager.unassign(hri,force);
      if(!this.assignmentManager.getRegionStates().isRegionInTransition(hri) && !this.assignmentManager.getRegionStates().isRegionAssigned(hri) ){
      	assignRegion(hri);
      }
      

      Attachments

        1. HBASE-7923.patch
          0.8 kB
          rajeshbabu
        2. HBASE-7923_2.patch
          1 kB
          rajeshbabu
        3. HBASE-7923_3.patch
          1 kB
          rajeshbabu

        Activity

          People

            rajesh23 rajeshbabu
            rajesh23 rajeshbabu
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: