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

Support multi-threads in HFileArchiver

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.2.0, 2.3.0, 2.1.4
    • None
    • None

    Description

      As of now, when deleting a table, we do the following regarding the filesystem layout:

      1. Move the table data to the temp directory (hbase/.tmp)
      2. Archive the region directories of the table in the temp directory one by one:
      https://github.com/apache/hbase/blob/b322d0a3e552dc228893408161fd3fb20f6b8bf1/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/DeleteTableProcedure.java#L319-L323

      However, step 2 will take a long time when the table has a huge number of regions. So I propose doing step 2 in multi-threads in this Jira.

      Also, during master startup, we do the same process as step 2:
      https://github.com/apache/hbase/blob/b322d0a3e552dc228893408161fd3fb20f6b8bf1/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterFileSystem.java#L313-L319

      We should make it multi-threaded, similarly.

      Attachments

        1. HBASE-21867.master.001.patch
          24 kB
          Toshihiro Suzuki
        2. HBASE-21867.master.002.patch
          24 kB
          Toshihiro Suzuki
        3. HBASE-21867.master.002.patch
          24 kB
          Toshihiro Suzuki
        4. HBASE-21867.master.003.patch
          26 kB
          Toshihiro Suzuki
        5. HBASE-21867.master.004.patch
          27 kB
          Toshihiro Suzuki
        6. HBASE-21867.branch-2.001.patch
          27 kB
          Toshihiro Suzuki
        7. HBASE-21867.branch-2.1.001.patch
          27 kB
          Toshihiro Suzuki

        Issue Links

          Activity

            People

              brfrn169 Toshihiro Suzuki
              brfrn169 Toshihiro Suzuki
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: