HBase
  1. HBase
  2. HBASE-10070 HBase read high-availability using timeline-consistent region replicas
  3. HBASE-10729

Enable table doesn't balance out replicas evenly if the replicas were unassigned earlier

    Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.99.0, hbase-10070
    • Component/s: None
    • Labels:
      None

      Description

      Enable table doesn't assign out replicas keeping availability in mind, if the replicas were unassigned before the table was disabled. For example, when a snapshot is restored and then the table is enabled, the replicas are unevenly assigned. The reason for this is that the the enable table invokes randomAssign that assigns one region at a time. Since the master doesn't have any information about the unassigned replicas, the calls to randomAssign can't do any availability checks.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        4h 43m 1 Devaraj Das 12/Mar/14 22:32
        Resolved Resolved Closed Closed
        346d 56m 1 Enis Soztutar 21/Feb/15 23:29
        Enis Soztutar made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Enis Soztutar added a comment -

        Closing this issue after 0.99.0 release.

        Show
        Enis Soztutar added a comment - Closing this issue after 0.99.0 release.
        Hide
        Hudson added a comment -

        FAILURE: Integrated in HBase-TRUNK #5245 (See https://builds.apache.org/job/HBase-TRUNK/5245/)
        HBASE-10729. Enable table doesn't balance out replicas evenly if the replicas were unassigned earlier (enis: rev d723115058f01ee7851d3b652b10cf8eb8b2cf3b)

        • hbase-server/src/main/java/org/apache/hadoop/hbase/master/handler/EnableTableHandler.java
        Show
        Hudson added a comment - FAILURE: Integrated in HBase-TRUNK #5245 (See https://builds.apache.org/job/HBase-TRUNK/5245/ ) HBASE-10729 . Enable table doesn't balance out replicas evenly if the replicas were unassigned earlier (enis: rev d723115058f01ee7851d3b652b10cf8eb8b2cf3b) hbase-server/src/main/java/org/apache/hadoop/hbase/master/handler/EnableTableHandler.java
        Enis Soztutar made changes -
        Fix Version/s 0.99.0 [ 12325675 ]
        Hide
        Enis Soztutar added a comment -

        Committed to master as part of hbase-10070 branch merge

        Show
        Enis Soztutar added a comment - Committed to master as part of hbase-10070 branch merge
        Hide
        Enis Soztutar added a comment -

        Attaching rebased patch for master that is committed

        Show
        Enis Soztutar added a comment - Attaching rebased patch for master that is committed
        Enis Soztutar made changes -
        Devaraj Das made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Enis Soztutar made changes -
        Fix Version/s hbase-10070 [ 12326176 ]
        Hide
        Enis Soztutar added a comment -

        +1

        Show
        Enis Soztutar added a comment - +1
        Hide
        Ted Yu added a comment -

        +1

        Show
        Ted Yu added a comment - +1
        Devaraj Das made changes -
        Field Original Value New Value
        Attachment 10729-1.txt [ 12634227 ]
        Hide
        Devaraj Das added a comment -

        Patch that takes care of this issue by invoking roundRobinAssignment. roundRobinAssignment has a global picture of the regions it is working with and would subject those regions to availability checks.

        Show
        Devaraj Das added a comment - Patch that takes care of this issue by invoking roundRobinAssignment. roundRobinAssignment has a global picture of the regions it is working with and would subject those regions to availability checks.
        Devaraj Das created issue -

          People

          • Assignee:
            Devaraj Das
            Reporter:
            Devaraj Das
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development