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

Remove the usage of RecoverMetaProcedure in master startup

    Details

    • Hadoop Flags:
      Reviewed
    • Release Note:
      Hide
      Introduce an InitMetaProcedure to initialize meta table for a new HBase deploy. Marked RecoverMetaProcedure deprecated and remove the usage of it in the current code base. We still need to keep it in place for compatibility. The code in RecoverMetaProcedure has been moved to ServerCrashProcedure, and SCP will always be enabled and we will rely on it to bring meta region online.

      For more on the issue addressed by this commit, see the design doc for overview and plan: https://docs.google.com/document/d/1_872oHzrhJq4ck7f6zmp1J--zMhsIFvXSZyX1Mxg5MA/edit#heading=h.xy1z4alsq7uy
      Show
      Introduce an InitMetaProcedure to initialize meta table for a new HBase deploy. Marked RecoverMetaProcedure deprecated and remove the usage of it in the current code base. We still need to keep it in place for compatibility. The code in RecoverMetaProcedure has been moved to ServerCrashProcedure, and SCP will always be enabled and we will rely on it to bring meta region online. For more on the issue addressed by this commit, see the design doc for overview and plan: https://docs.google.com/document/d/1_872oHzrhJq4ck7f6zmp1J--zMhsIFvXSZyX1Mxg5MA/edit#heading=h.xy1z4alsq7uy

      Description

      In HBASE-20700, we make RecoverMetaProcedure use a special lock which is only used by RMP to avoid dead lock with MoveRegionProcedure. But we will always schedule a RMP when master starting up, so we still need to make sure that there is no race between this RMP and other RMPs and SCPs scheduled before the master restarts.

      Please see [#accompanying design document ]where we call out the problem being addressed by this issue in more detail and in which we describe our new approach to Master startup.

        Attachments

        1. HBASE-20708.patch
          103 kB
          Duo Zhang
        2. HBASE-20708-v1.patch
          111 kB
          Duo Zhang
        3. HBASE-20708-v2.patch
          111 kB
          Duo Zhang
        4. HBASE-20708-v3.patch
          115 kB
          Duo Zhang
        5. HBASE-20708-v4.patch
          117 kB
          Duo Zhang
        6. HBASE-20708-v5.patch
          120 kB
          Duo Zhang
        7. HBASE-20708-v6.patch
          125 kB
          Duo Zhang
        8. HBASE-20708-v7.patch
          126 kB
          Duo Zhang
        9. HBASE-20708-v8.patch
          132 kB
          Duo Zhang
        10. HBASE-20708-v9.patch
          141 kB
          Duo Zhang
        11. HBASE-20708-v9.patch
          141 kB
          Duo Zhang

          Issue Links

            Activity

              People

              • Assignee:
                Apache9 Duo Zhang
                Reporter:
                Apache9 Duo Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: